Skip to content

Commit 2636e2a

Browse files
StevenMMortimerjimhester
authored andcommitted
Fix missing argument error
Fix the error message argument "quiet" is missing, with no default by adding quiet with default value FALSE to the install_git function just like it has been done with the install_github function
1 parent c782cd3 commit 2636e2a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

R/install-git.r

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#' @param branch Name of branch or tag to use, if not master.
1111
#' @param credentials A git2r credentials object passed through
1212
#' to \code{\link[git2r]{clone}}.
13+
#' @param quiet if \code{TRUE} suppresses output from this function.
1314
#' @param ... passed on to \code{\link{install}}
1415
#' @export
1516
#' @family package installation
@@ -18,12 +19,12 @@
1819
#' install_git("git://github.com/hadley/stringr.git")
1920
#' install_git("git://github.com/hadley/stringr.git", branch = "stringr-0.2")
2021
#'}
21-
install_git <- function(url, subdir = NULL, branch = NULL, credentials = NULL, ...) {
22+
install_git <- function(url, subdir = NULL, branch = NULL, credentials = NULL, quiet=FALSE, ...) {
2223

2324
remotes <- lapply(url, git_remote, subdir = subdir,
2425
branch = branch, credentials=credentials)
2526

26-
install_remotes(remotes, ...)
27+
install_remotes(remotes, quiet = quiet, ...)
2728
}
2829

2930
git_remote <- function(url, subdir = NULL, branch = NULL, credentials=NULL) {

man/install_git.Rd

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)