powered by
This must be called by the user, as prompted on package attach with library(icd).
library(icd)
set_icd_data_dir(path = NULL)get_icd_data_dir(must_work = TRUE)
get_icd_data_dir(must_work = TRUE)
Path to a directory where cached online raw and parsed data will be cached. It will be created if it doesn't exist.
Logical, the default of TRUE will cause this to stop with an error if a usable icd data directory cannot be found or set.
TRUE
The path to the resource directory, or NULL if it could not be found.
NULL
Invisibly returns the data path which was set, or NULL if not done.
get_icd_data_dir: Get the currently active data directory, and check it exists and is writable.
get_icd_data_dir
download_all_icd_data
# NOT RUN { set_icd_data_dir() # or choose another directory: # set_icd_data_dir("/var/cache/icd.data") # then you may use: # download_all_icd_data() # or let 'icd' download data when needed. # }
Run the code above in your browser using DataLab