powered by
Provides functionality for system-level Git commands from within R.
git(..., echo_cmd = TRUE)is_git()git_version()
is_git()
git_version()
git(): The system call ... invisibly.
git()
is_git(): logical(1).
logical(1)
git_version(): character(1). The system version of git.
character(1)
git
Additional arguments passed to the system command-line git <command> [<args>] call.
git <command> [<args>]
logical(1). Whether to print the command to run to the console. Can be over-ridden globally via option(gitr_echo_cmd = FALSE).
option(gitr_echo_cmd = FALSE)
git(): executes a git command line call from within R.
is_git(): is current working directory a git repository?
git_version(): gets the version of git in use.
if (FALSE) { git("status", "-s") git("reset", "--soft", "HEAD~1") git("tag", "-n") is_git() git_version() }
Run the code above in your browser using DataLab