cache_set_dir: Set local cache path

Description Usage Arguments See Also Examples

View source: R/local_path_helpers.R

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

1
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

1
2
3
4
5
## Not run: 
  #set a different cache path
  set_cache_path('z:/big_datasets/hydrolinks')

## End(Not run)

hydrolinks documentation built on May 1, 2019, 8:08 p.m.