write.csv_vc: Wrapper for write.csv

Description Usage Arguments Value See Also Examples

View source: R/csv.R

Description

This is a wrapper for write.csv, you can use it exactly as you would use write.csv. 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
write.csv_vc(x, file, ..., stamp = Sys.Date(),
  version_control = "DATA_VC", verbose = FALSE)

Arguments

x

the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame.

file

either a character string naming a file or a connection open for writing. "" indicates output to the console.

...

other params for write.csv see write.csv

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

write.csv

Examples

1
2
make_data_vc()
write.csv_vc(cars, "my_cars.csv", verbose = TRUE)

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