powered by
Sets the directory where downloaded files will be cached. This avoids repeated downloads of the same data.
set_cache_dir(path = NULL, persistent = FALSE)
Invisibly returns the cache directory path.
A character string with the path to the cache directory. If NULL, uses a temporary directory (default).
NULL
Logical. If TRUE, the cache directory setting is saved to the user's R profile for future sessions.
TRUE
# \donttest{ # set a persistent cache directory set_cache_dir("~/educabR_cache") # }
Run the code above in your browser using DataLab