makec: Make an object using a function and record in cache

Description Usage Arguments Value

View source: R/cache.R

Description

Similar logic to assignc(x), but

Usage

1
makec(x, constructor, ...)

Arguments

x

character, name of target object; a side effect of the function is to add data into an object with this name

constructor

function, used to generate object x

...

additional arguments passed on to constructor

Value

integer code: 3 when object generated using contructor 2 when make aborted because object already exists 1 when object loaded from cache 0 (should not happen)


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