Check Existence, Read, Save and Rename .rda
Files and their Objects.
exists_rda(file, names, package = NULL)
read_rda(file, names, package = NULL)
save_rda(..., file, names = NULL)
rename_rda(oldname, oldfile = paste0(oldname, collapse = "_"),
newname, newfile = paste0(newname, collapse = "_", ".rda"),
package = NULL)
character
string (with or
without ending .rda
) specifying the name of the file
to check existence of (if pacakge = NULL
) or in (otherwise).
character
string (with or without ending
.rda
) specifying the file to read from.
character
string (with or without ending
.rda
) specifying the file to save to.
character
vector of names of objects to
be checked for existence.
character
vector of names of
objects to be read. If not provided, a name is constructed
from file
.
character
vector of names under
which the objects in …
are saved in file
. If
NULL
, the names of the objects provided by …
are taken as default values.
any number of R objects.
character
string specifying the object to
be read.
file name (with or without ending .rda
)
specifying from which the object named oldname
is read.
character
string specifying the new name
under which the object is to be saved.
file name (with ending .rda
) specifying
where the object named oldname
is saved under the name
newname
.
logical
indicating whether the
.rda
file file
exists (if names
is not
provided) or whether the objects with names names
exist inside file
(if names
is provided).
the object read from the .rda
.
nothing (generated an .rda
by side-effect).
nothing (generated an .rda
by side-effect).
See the underlying functions load()
,
data()
and save()
(among others).