storeRDS.Rd
Given an R object, attempts to store it in the directory
basepath/fname
. The name given to the file will be of the form
DATE.rds
, where DATE
is of the format
%Y_%m_%d_%H_%M
. An error will be thrown if basepath
does
not exist. However, if basepath/fname
does not exist, an attempt will
be made to create it. The DATE
is the current time. Intended to be
used with retrieveRDS
. See mostRecentTimestamp
for an usage example.
storeRDS(obj, fname, basepath = ".")
obj | An R object |
---|---|
fname | The name of the directory in |
basepath | A string. The path which stores |
A message announcing the path the object has been written to