saveRDS_vc: Wrapper for saveRDS

Description Usage Arguments Value See Also Examples

View source: R/rds.R

Description

This is a wrapper for saveRDS, you can use it exactly as you would use saveRDS. Internally it checks for the data version control file, and inserts or updates the record for the file that you are saving. The tracking is applied to the 'file'

Usage

1
2
saveRDS_vc(object, file, ..., stamp = Sys.Date(),
  version_control = "DATA_VC", verbose = FALSE)

Arguments

object

'R' object to serialize.

file

a connection or the name of the file where the 'R' object is saved to or read from

...

other params for saveRDS see saveRDS

stamp

file suffix to disambiguate, default is Sys.Date()

version_control

name of data version control file. Default is 'data_vc'. Should match name used in 'make_data_vc'.

verbose

logical, report update to version control file? Default is FALSE

Value

NULL invisibly

See Also

saveRDS

Examples

1
2
make_data_vc()
saveRDS_vc(cars, "my_cars.rds", verbose = TRUE)

williamlief/DataVersionControl documentation built on Jan. 6, 2020, 8:20 a.m.