Skip to content

Commit

Permalink
Fixed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JanionNevill committed Jan 30, 2025
1 parent b0ea55a commit f0d34e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions global.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
###### MetaInsight ######

LoadOrInstall <- function(package_name, install_function = install.packages) {
print("*** - *** Loading package: '" + package_name + "' *** - ***")
print(paste0("*** - *** Loading package: '", package_name, "' *** - ***"))
tryCatch(
{
library(package_name, character.only = TRUE)
},
error = function(exptn) {
print("*** - *** Installing package: '" + package_name + "' *** - ***")
print(paste0("*** - *** Installing package: '", package_name, "' *** - ***"))
if (class(exptn)[1] == "packageNotFoundError") {
install_function(package_name)
library(package_name, character.only = TRUE)
Expand Down

0 comments on commit f0d34e1

Please sign in to comment.