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_versionA string of the form x.y.z giving the version number of the earliest version of R that can read the file.
formatEither "ascii" or "binary", indicating whether saveRDS created the file with the ascii=FALSE argument.
native_encodingThe native character encoding (for example, "UTF-8" or "CP1252") used by the copy of R that created the RDS file.
See Also
saveRDS, loadRDS.
Examples
infoRDS(system.file(package="splines", "Meta", "hsearch.rds"))
Package base version 6.1.1-7
Package Index