loadObjs | R Documentation |
load
that returns the unserialized objects as a listThis is an alternative to load
which
does not unserialize the objects into an environment, typically the
user's global environment, and overwrite existing variables.
Instead, it returns the unserialized objects as a named list.
loadObjs(file, ...)
file |
the RDA file or connection |
... |
additional arguments passed to |
This uses load
to unserialize the objects in the RDA stream
into an empty environment and then converts that to a list and returns that.
A list with named-elements
Duncan Temple Lang
load
and Load
f = system.file("sampleRDA", "test.rda", package = "RDAInfo")
cur = ls()
vals = loadObjs(f)
now = ls()
setdiff(now, cur)
names(vals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.