| download_example_datasets | R Documentation |
Downloads example datasets that can be used to test the functionality of the metabodecon package. These datasets are not included in the package by default due to size constraints. The datasets are downloaded as zip file and extracted automatically, unless extraction is disabled by the user.
download_example_datasets(
dst_dir = NULL,
extract = TRUE,
persistent = NULL,
overwrite = FALSE,
silent = FALSE
)
dst_dir |
The destination directory where the downloaded datasets will be stored. If NULL, the function will return the path to the cached zip file. |
extract |
Logical. If TRUE, the downloaded zip file will be extracted. |
persistent |
Logical. If TRUE, the downloaded datasets will be cached at
|
overwrite |
Logical. If TRUE, existing files with the same name in the destination directory will be overwritten. |
silent |
Logical. If TRUE, no output will be printed to the console. |
The path to the downloaded (and possibly extracted) datasets.
2024-2025 Tobias Schmidt: initial version.
datadir()
if (interactive()) {
zip <- download_example_datasets(extract = FALSE, persistent = FALSE)
dir <- download_example_datasets(extract = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.