Read an S3 Binary File
Reads binary data files or
that were produced in S version 3.
data.restore(filename, print = FALSE, verbose = FALSE, env = .GlobalEnv) read.S(filename)
- the filename of the S-PLUS
data.dumpor binary file.
- whether to print the name of each object as read from the file.
- whether to print the name of every subitem within each object.
- environment within which to create the restored object.
read.S can read the binary files produced in most recent
versions of S-PLUS on either Windows (versions 3.x, 4.x, 2000) or Unix
(version 3.x with 4 byte integers). It automatically detects whether the
file was produced on a big- or little-endian machine and adapts itself
data.restore can read a similar range of files
Not all S3 objects can be handled in the current version. The most frequently encountered exceptions are functions and expressions; you will also have trouble with objects that contain model formulas. In particular, comments will be lost from function bodies, and the argument lists of functions will often be changed.
SModeNames variable contains a list of the modes of variables
as used in S3.
- an R version of the S3 object.
read.S(file.path("_Data", "myobj")) data.restore("dumpdata", print = TRUE)