Description Usage Arguments Value
View source: R/utils_retriever_data.R
check_default_data_path
checks if a default data path is
set, and prompts the user to set it if it is missing.
get_default_data_path
gets the value of the data path
environmental variable
use_default_data_path
has 3 steps. First, it checks for
the presence of a pre-existing setting for the environmental variable.
Then it checks if the folder exists and creates it, if needed. Then it
provides instructions for setting the environmental variable.
1 2 3 4 5 | check_default_data_path(ENV_VAR = "MCSDB_DATA_PATH")
get_default_data_path(fallback = "~", ENV_VAR = "MCSDB_DATA_PATH")
use_default_data_path(path = NULL, ENV_VAR = "MCSDB_DATA_PATH")
|
ENV_VAR |
the environmental variable to check (by default '"MCSDB_DATA_PATH"“) |
fallback |
the default value to use if the setting is missing |
path |
Folder into which data will be downloaded |
FALSE if there is no path set, TRUE otherwise
None
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.