loadAssign: loadAssign

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/misc.R

Description

Load a RData file and return the value of the first entry

Usage

1

Arguments

...

arguments to load

Details

The load function is evaluated in a local environment. Then the value of the first entry of ls in that environment is returned.

Value

Value of the first variable the loaded file

Author(s)

Thomas Wutzler

See Also

seqRange, twMisc

Examples

1
2
3
4
5
6
# save the filename character into a temporary file 
fout <- fout2 <- file.path(tempdir(),"tmp.RData")
save(fout,file=fout)
fout <- "changed"
(x <- loadAssign(file=fout2))   
fout                # note that is has not been overwritten with load

twMisc documentation built on May 2, 2019, 6:11 p.m.