Learn R Programming

hydrolinks (version 0.10.0)

cache_set_dir: Set local cache path

Description

Set location of local data file cache. If the directory does not exist, it will be created recursively. If no custom path is set, the default user data directory for the package will be used. See user_data_dir for details.

Usage

cache_set_dir(path = NULL, temppath = FALSE)

Arguments

path

Character path to new local files path. If null, path will be reset to default user data directory location.

temppath

Boolean flag indicating if the default R temp directory should be used instead of a custom or user-workspace area. Warning: This setting will not persist between R sessions and the temp directory is cleared when R is closed. Using temp will result in frequent file downloads and extremely slow performance

See Also

cache_get_dir

Examples

Run this code
# NOT RUN {
  #set a different cache path
  set_cache_path('z:/big_datasets/hydrolinks')
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab