pb_track: Track data files of a given pattern or location

Description Usage Arguments Details Value Examples

View source: R/pb_track.R

Description

Track data files of a given pattern or location

Usage

1
pb_track(glob = NULL, repo_root = usethis::proj_get())

Arguments

glob

vector of file names and/or glob pattern (e.g. *.csv, data/*.csv) which will be tracked by piggyback. Omit (default NULL) to just return a list of files currently tracked.

repo_root

repository root, will be guessed by usethis otherwise.

Details

Note: tracked patterns are simply written to .pbattributes (analogous to .gitattributes in git-lfs.) You can also edit this file manually. You will probably want to check in .psattributes to as to version control., with git add .psattributes. Note that tracked file patterns will also be added to .gitignore.

Value

list of tracked files (invisibly)

Examples

1
2
3
4
5
6
## Not run: 
## Track all .csv and .tsv files
pb_track(c("*.tsv", "*.tsv.gz"))


## End(Not run)

piggyback documentation built on Feb. 25, 2020, 5:08 p.m.