Skip to content
Prev 41520 / 63421 Next

readRDS and saveRDS

On Tue, Oct 18, 2011 at 9:34 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
I always thought that S3 was part of the reason for read.ext write.ext. In:

"/path/file.ext"

the "class" of the file is "ext".  I kind of like the idea of taking
this farther, generic functions read/write dispatch to the appropriate
method depending on the class of the file.  Generally, only read/write
would be used, specifying the specific method as needed.  read.rda and
write.rda could replace load/save where: dat <- read.rda() would
create an environment, dat rather than simply loading them into the
global environment.

Though this is more of a hypothetical situation than a suggestion for change.