Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Dec 1, 2024
1 parent 2fc99f2 commit 7bfb9fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vignettes/articles/case_study.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ packages <- c(
# Load all packages into session. Stop if there are packages that were not
# successfully loaded
pkgs_not_loaded <- !sapply(packages, require, character.only = TRUE)
pkgs_not_loaded <- !sapply(packages, function(pkg){
suppressPackageStartupMessages(require(pkg, character.only = TRUE))
})
pkgs_not_loaded <- names(pkgs_not_loaded)[pkgs_not_loaded]
if (length(pkgs_not_loaded) > 0) {
stop("Error in loading the following packages into the session: '",
Expand Down

0 comments on commit 7bfb9fb

Please sign in to comment.