get_vc_name: Copy the stamped file name to the clip board

Description Usage Arguments Value Examples

View source: R/get_vc_name.R

Description

Given a file, gets its stamped name from 'DATA_VC' for cases when you want to hardcode a file reference. The stamped file name is pushed to the system clipboard using the 'clipr' package and can be immediately pasted.

Usage

1
get_vc_name(file, version_control = "DATA_VC", verbose = FALSE)

Arguments

file

name of file to retrieve stamped name

version_control

name of version control file, default is 'DATA_VC'

verbose

logical, print output to console?

Value

writes string to system clipboard, invisibly

Examples

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

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