read_csv_vc: Wrapper for readr::read_csv

Description Usage Arguments Value Examples

View source: R/csv.R

Description

This is a wrapper function for readr::read_csv. You can use it exactly as you would read_csv. Internally it checks the data version control file and returns the stamp associated with the current version of the desired 'file'.

Usage

1
read_csv_vc(file, ..., version_control = "DATA_VC", verbose = FALSE)

Arguments

file

the name of the file which the data are to be read from.

...

other params for read.csv see read_csv

version_control

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

verbose

logical, report returned current file version? Default is FALSE

Value

a string 'stamp'_'file'

Examples

1
2
3
make_data_vc()
write_csv_vc(cars, "my_cars.csv", verbose = TRUE)
read_csv_vc("my_cars.csv", verbose = TRUE)

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