write_csv_vc: Wrapper for readr::write_csv

Description Usage Arguments Value See Also Examples

View source: R/csv.R

Description

This is a wrapper for readr::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, path, ..., stamp = Sys.Date(),
  version_control = "DATA_VC", verbose = FALSE)

Arguments

x

A data frame to write to disk

path

Path or connection to write to.

...

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.