Save(ASOR) | R Documentation |
Stores copies of objects in memory (or visible on search path) as
save
files in a directory. Usually (but nor necessarily) the
copy in memory is removed. The object is still visible as a
delayedAssign
object and automatically re-enters memory as needed
by loading.
Save(..., lib = ".R_Store", lib.loc = getwd(), remove = TRUE)
... |
objects to be saved either as names or as character strings. |
lib |
Name of directory to hold out of memory object files |
lib.loc |
full path name to directory holding lib as a
character string |
remove |
Is the object to be removed from central memory?
TRUE if so, else FALSE and the object remains in
memory as well as in out of memory storage. |
A convenient front end to save
and delayedAssign
. Will
attach the directory onto the search path if not already thee, and
create the directory if not already in existence.
Used only for side effects.
SaveData
and SaveUtils
differ only in the default
values of their lib
and lib.loc
arguments and would
normally be used for central storage of data and function objects
respectively.
The Store
forms are completely equivalent to their Save
counterparts and are included for convenience only.
~~who you are~~
~put references to the literature/web site here ~
delayedAssign, save, attach, remove, rm
Alpha <- 1 Beta <- 2 Save(Alpha, Beta) # creates and attaces directory as needed Save(objects(all = TRUE), remove = FALSE) # move copies to out of memory storage.