Track data files of a given pattern or location

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.

Value

list of tracked files (invisibly)

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.

Examples

# NOT RUN {
## Track all .csv and .tsv files
pb_track(c("*.tsv", "*.tsv.gz"))

# }