Learn R Programming

educabR (version 0.1.0)

set_cache_dir: Set the cache directory for educabR

Description

Sets the directory where downloaded files will be cached. This avoids repeated downloads of the same data.

Usage

set_cache_dir(path = NULL, persistent = FALSE)

Value

Invisibly returns the cache directory path.

Arguments

path

A character string with the path to the cache directory. If NULL, uses a temporary directory (default).

persistent

Logical. If TRUE, the cache directory setting is saved to the user's R profile for future sessions.

Examples

Run this code
# \donttest{
# set a persistent cache directory
set_cache_dir("~/educabR_cache")
# }

Run the code above in your browser using DataLab