assignc: Assign value to a variable using value from cache

Description Usage Arguments Value

View source: R/cache.R

Description

Assign value to a variable using value from cache

Usage

1
assignc(x, overwrite = FALSE, warn = FALSE, msgfun = msg)

Arguments

x

character, name of object to retrieve from cache

overwrite

logical, when TRUE, load from cache occurs regardless of whether object already exists; when FALSE, assign only happens

warn

logical, determine if show warning when assignment fails

msgfun

function, used to output a message if verbosity is set >1

Value

integer code: 0 when load failed; 1 when object loaded from cache; 2 when assign was aborted because object already exists


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.