Learn R Programming

censobr (version 0.5.0)

set_censobr_cache_dir: Set custom cache directory for censobr files

Description

Set custom directory for caching files from the censobr package. The user only needs to run this function once. This set directory is persistent across R sessions.

Usage

set_censobr_cache_dir(path, verbose = TRUE)

Value

A message pointing to the directory where censobr files are cached.

Arguments

path

String. The path to an existing directory. It defaults to path = NULL, to use the default directory

verbose

A logical. Whether the function should print informative messages. Defaults to TRUE.

See Also

Other Cache data: censobr_cache(), get_censobr_cache_dir()

Examples

Run this code
if (FALSE) { # identical(tolower(Sys.getenv("NOT_CRAN")), "true")

# Set custom cache directory
tempd <- tempdir()
set_censobr_cache_dir(path = tempd)

# back to default path
set_censobr_cache_dir(path = NULL)
}

Run the code above in your browser using DataLab