infoRDS
RDS File Details
Description
Reports the version number and other details of an RDS file made by saveRDS.
Usage
infoRDS(file)
Arguments
file |
a character string naming a file made with saveRDS.
|
Details
An error is given if the file does not follow an RDS format.
Value
version | An integer version number of the RDS format. |
writer_version | A string of the form x.y.z giving the
version number of the R that created the file. |
min_read_version | A string of the form x.y.z giving the
version number of the earliest version of R that can read
the file. |
format | Either "ascii" or "binary", indicating
whether saveRDS created the file with the ascii=FALSE
argument. |
native_encoding | The native character encoding (for example, "UTF-8"
or "CP1252") used by the copy of R that created the RDS file. |
See Also
Examples
infoRDS(system.file(package="splines", "Meta", "hsearch.rds"))