Report on Details of Saved Images or Re-saves them
This reports for each of the files produced by
save the size,
if it was saved in ASCII or XDR binary format, and if it was
compressed (and if so in what format).
Usually such files have extension .rda or .RData, hence the name of the function.
checkRdaFiles(paths) resaveRdaFiles(paths, compress = c("auto", "gzip", "bzip2", "xz"), compression_level)
- A character vector of paths to
savefiles. If this specifies a single directory, it is taken to refer to all .rda and .RData files in that directory.
- compress, compression_level
- type and level of compression: see
save. Values of
compresscan be abbreviated.
compress = "auto" asks R to choose the compression and ignores
compression_level. It will try
and if the
"gzip" compressed size is over 10Kb,
choose the smallest compressed file (but with a 10% bias towards
"gzip"). This can be slow.
- numeric: file size in bytes,
NAif the file does not exist.
- logical: true for save(ASCII = TRUE),
NAif the format is not that of an R save file.
- character: type of compression. One of
"unknown"(which means that if this is an R save file it is from a later version of R).
- integer: the version of the save -- usually
1for very old files, and
NAfor other files.
checkRdaFiles, a data frame with rows names