runorload: run code or load previous run

Description Usage Arguments Value Author(s) Examples

View source: R/mysave.R

Description

load a file if it exists. Otherwise, run commands, and save created objects. Experimental!

Usage

1

Arguments

file

string, name of file to save in

objects

character vector giving names of objects to save

...

arguments to be evaluated. Use "<-" not "=" for any objects to be saved!

Value

side effect: loads from file

Author(s)

Chris Wallace

Examples

1
runorload("tmp.RData","xnew",ls(),a=2,b=6,xnew<-a*b)

chr1swallace/random-functions documentation built on March 6, 2021, 10:56 a.m.