set_home: Set the local cache directory

View source: R/helpers.R

set_homeR Documentation

Set the local cache directory

Description

The function sets the environment variable RCZECHIA_HOME to be used as a local cache for RCzechia remote files; if unset tempdir() is used instead, with persistence for current session only.

Usage

set_home(path)

Arguments

path

file to be downloaded (or not...) from S3

Details

Note that when set (it is unset by default) the remote files will be cached to local file system and persist between R sessions, for good or bad.

Also note that you can set the value of RCZECHIA_HOME environment variable directly, either via a Sys.setenv() call or via your .Renviron file.

Value

TRUE for success and FALSE for failure; returned silently


RCzechia documentation built on Nov. 2, 2023, 5:49 p.m.