Learn R Programming

ursa (version 3.9.4)

ursa_cache: Cache management of ursa package

Description

This help topic is about how cache is managed in the package.

Usage

ursa_cache()

Arguments

Value

NULL

Details

Users, who want to keep cache files between R sessions, should define option with name ursaCacheDir and value of the path for storage of cache files. This setting can be specified if ~/.Rprofile file, or be in your code. If you specify permanent cache directory as sub-directory of tempdir() (see example), it will be removed after finishing of R session.

Examples

Run this code
# NOT RUN {
 ## internet connection is required
options(ursaCacheDir=file.path(tempdir(),".ursaCacheDir"))
print(c(tempdir=tempdir(),ursaCacheDir=getOption("ursaCacheDir")))
glance("Mount Eden",place="park")
dir(getOption("ursaCacheDir"))
# }

Run the code above in your browser using DataLab