Retrieve directory path of an example dataset
get_data_dir.Rd
Returns the path to the directory storing the example files shipped with metabodecon.
Deprecated. Please use datadir()
instead. See examples below for usage.
``
Usage
get_data_dir(dataset_name = c("", "blood", "test", "urine"), warn = TRUE)
Arguments
- dataset_name
Either
""
,"test"
,"blood"
or"urine"
.- warn
Whether to print a warning message when the example folders do not yet exist, i.e.
download_example_datasets()
has not been called yet.
Examples
x <- get_data_dir("urine") # Deprecated
#> Warning: /tmp/RtmplbJ427/metabodecon/data does not exist. Please call `download_example_datasets()` first.
#> Warning: /tmp/RtmplbJ427/metabodecon/data/example_datasets/bruker/urine does not exist. Please call `download_example_datasets(extract = TRUE)` first.
y <- datadir("example_datasets/bruker/urine") # Preferred
#> Warning: /tmp/RtmplbJ427/metabodecon/data/example_datasets/bruker/urine does not exist. Please call `download_example_datasets()` first.