Description Usage Arguments Value Functions See Also Examples
This must be called by the user, as prompted on package attach with library(icd.data)
. icd.data
is a dependency (not an import) of icd
, so that icd
can function more smoothly, avoiding prompting during commands, although this should still be possible, and will happen if the user initially declines permission to download and cache data.
1 2 3 | setup_icd_data(path = NULL)
icd_data_dir(path)
|
path |
Path to a directory where cached online raw and parsed data will be cached. It will be created if it doesn't exist. |
The path to the resource directory, or NULL
if it could not be
found.
Invisibly returns the data path which was set, or NULL if not done.
icd_data_dir
: Return the currently active data directory. If
missing, it will return NULL
and, depending on
getOption("icd.data.absent_action")
, will stop, give a message, or
do nothing.
1 2 3 4 5 6 7 | ## Not run:
setup_icd_data()
setup_icd_data("/var/cache/icd.data")
setup_icd_data(path = ".local/icd.data")
icd_data_dir()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.