run_git_command: Run a git command in a dataset repository

View source: R/git_sync.R

run_git_commandR Documentation

Run a git command in a dataset repository

Description

Run a git command in a dataset repository

Usage

run_git_command(repo, command, return_output = FALSE)

Arguments

repo

dataset name: 'all_basiclevel', 'reliability', etc.

command

what you would have after git on the command line except for the -C \<folder\> part - the function will do that part for you.

return_output

boolean, whether to return the printed output of the command as string

Value

string with output if return_output is TRUE, else NULL

Examples

## Not run: 
run_git_command('all_basiclevel', 'status')

## End(Not run)

BergelsonLab/blabr documentation built on April 19, 2024, 7:21 p.m.