Trace Value from CSV through history of local Git repository

trace_git_csv_value(repo, csv, subset_str, select, verbose = T)

Arguments

repo

path to repository on local filesystem

csv

path to csv file with the repository as root

subset_str

subset argument to the function subset quoted as string to extract row of data from csv

select

field to select from subsetted row

Value

data.frame having columns: hex, when, message, v.

Details

If you have trouble running this function, please make sure: 1) your path resolves to a local Git repository, 2) you have the latest git2r (try devtools::install_github('ropensci/git2r')).

Examples

# NOT RUN { # trace the value for a csv from github repository d = trace_git_csv_value('~/github/ohicore', 'inst/extdata/scores.Global2013.www2013.csv', "goal=='ECO' & dimension=='status' & region_id==237", 'score') head(d) # }