git {gitr} | R Documentation |
Git Utilities
Description
Provides functionality for system-level Git commands from within R.
Usage
git(..., echo_cmd = TRUE)
is_git()
git_version()
Arguments
... |
Additional arguments passed to the system
command-line |
echo_cmd |
|
Value
git()
: The system call ... invisibly.
is_git()
: logical(1)
.
git_version()
: character(1)
.
The system version of git
.
Functions
-
git()
: executes agit
command line call from within R. -
is_git()
: is current working directory agit
repository? -
git_version()
: gets the version of git in use.
Examples
## Not run:
git("status", "-s")
git("reset", "--soft", "HEAD~1")
git("tag", "-n")
is_git()
git_version()
## End(Not run)
[Package gitr version 0.1.0 Index]