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

Description Usage Arguments Value Functions See Also Examples

Description

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.

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.

Value

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.

Functions

See Also

download_icd_data

Examples

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)

jackwasey/icd.data documentation built on May 31, 2019, 10:47 p.m.