Learn R Programming

metabodecon (version 1.6.2)

get_data_dir: Retrieve directory path of an example dataset

Description

Returns the path to the directory storing the example files shipped with metabodecon.

Deprecated since metabodecon v1.2.0. Please use datadir() instead. See examples below for usage.

[Deprecated]

Usage

get_data_dir(dataset_name = c("", "blood", "test", "urine"), warn = TRUE)

Value

Path to the directory storing the example files.

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.

Author

2024-2025 Tobias Schmidt: initial version.

See Also

download_example_datasets()

Examples

Run this code
x <- get_data_dir("urine")                     # Deprecated
y <- datadir("example_datasets/bruker/urine")  # Preferred
cat(x, y, sep = "\n")

Run the code above in your browser using DataLab