Learn R Programming

ProjectTemplate (version 0.3-3)

cache: Cache a variable for later use.

Description

cache() stores a variable in the cache/ directory as an .RData file.

Usage

cache(variable)

Arguments

variable
A character vector containing the name of the variable to be saved.

Value

  • No value is returned; this function is called for its side effects.

Examples

Run this code
library('ProjectTemplate')

var1 <- 1:5

cache('var1')

Run the code above in your browser using DataLab