Learn R Programming

adapr (version 2.0.0)

gitProvenance: Identify git provenance of file within a project

Description

Identify git provenance of file within a project

Usage

gitProvenance(project.id, filepath = 0)

Arguments

project.id

Project id to search for history within

filepath

File that will be hashed and search within Git history, File choose dialogue if not specified

Value

list of 1) filename, 2) Git commit including commit message, date, author and 2) file info

Details

Requires a Git commit snapshot within the project

Examples

Run this code
# NOT RUN {
 projpath <- file.path(getProjectPath("adaprHome"),"Programs")
 gitProvenance("adaprHome",file.path(projpath,"read_data.R"))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab