Skip to content

Commit

Permalink
update all packages - not just when not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
NewGraphEnvironment committed Jun 19, 2024
1 parent a3527d6 commit c2a5c7e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,9 @@ pkgs_all <- c(pkgs_cran,

# install or upgrade all the packages with pak
if(params$update_packages){
for (pkg in pkgs_gh) {
if (!requireNamespace(pkg, quietly = TRUE)) {
pak::pkg_install(pkg, ask = FALSE)
}
}
lapply(pkgs_all,
pak::pkg_install,
ask = FALSE)
}

# load all the packages
Expand Down

0 comments on commit c2a5c7e

Please sign in to comment.