set_icd_data_dir: Set up the data download cache, give permission to download...

Description Usage Arguments Value Functions See Also Examples

View source: R/options.R

Description

This must be called by the user, as prompted on package attach with library(icd).

Usage

1
2
3

Arguments

path

Path to a directory where cached online raw and parsed data will be cached. It will be created if it doesn't exist.

must_work

Logical, the default of TRUE will cause this to stop with an error if a usable icd data directory cannot be found or set.

Value

The path to the cache directory, or NULL if it could not be found.

Invisibly returns the data path which was set, or NULL if not done.

Functions

See Also

download_all_icd_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
set_icd_data_dir()
# or choose another directory:
# set_icd_data_dir("/var/cache/icd.data")
# If you choose a custom directory, you may wish to add this command to your .Rprofile .
# then you may use:
# download_all_icd_data()
# or let 'icd' download data when needed.

## End(Not run)

icd documentation built on July 2, 2020, 4:07 a.m.