rb_set_cache_folder: Set folder for caching data

View source: R/rb_caching.R

rb_set_cache_folderR Documentation

Set folder for caching data

Description

Consider using a folder out of your current project directory, e.g. 'rb_set_cache_folder("~/R/rbackupr_data/")': you will be able to use the same cache in different projects, and prevent cached files from being sync-ed if you use services such as Nextcloud or Dropbox.

Usage

rb_set_cache_folder(path = NULL)

rb_get_cache_folder(path = NULL)

Arguments

path

A path to a location used for caching data. If the folder does not exist, it will be created.

Value

The path to the caching folder, if previously set; the same path as given to the function; or the default, 'rbackupr_data' is none is given.

Examples


if (interactive()) {
  rb_set_cache_folder(fs::path(fs::path_home_r(), "R", "rbackupr_data"))
}

rb_get_cache_folder()

giocomai/rbackupr documentation built on Oct. 18, 2023, 9:36 p.m.