Skip to content

Commit

Permalink
Clean install_kwb_github_packages()
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed May 2, 2024
1 parent f3bcd69 commit 164241c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions R/install_kwb_github_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
#' @export
#' @importFrom remotes install_github

install_kwb_github_packages <- function(pkgs_kwb,
dependencies = TRUE,
quiet = TRUE,
...) {
pkgs_kwb_github <- sprintf("KWB-R/%s", pkgs_kwb)
install_kwb_github_packages <- function(
pkgs_kwb,
dependencies = TRUE,
quiet = TRUE,
...
)
{
sapply(paste0("KWB-R/", pkgs_kwb), function(repo) {
message("Installing R package: ", repo)
try(remotes::install_github(
repo = repo,
dependencies = dependencies,
quiet = quiet,
...
))
})


sapply(
pkgs_kwb_github,
FUN = function(gh_repo) {
message(sprintf("Installing R package: %s", gh_repo))
try(remotes::install_github(repo = gh_repo,
dependencies = dependencies,
quiet = quiet,
...))
}
)
}

0 comments on commit 164241c

Please sign in to comment.