| 1 |
|
| 2 |
git <- function() { |
| 3 |
|
| 4 |
gitpath <- Sys.which("git") |
| 5 |
if (!nzchar(gitpath)) |
| 6 |
stop("failed to find git executable on the PATH") |
| 7 |
|
| 8 |
gitpath |
| 9 |
|
| 10 |
} |
| 11 |
|
| 12 |
renv_git_preflight <- function() { |
| 13 |
if (!nzchar(Sys.which("git"))) |
| 14 |
stopf("'git' is not available on the PATH") |
| 15 |
} |