Skip to content

Commit

Permalink
placing packageStartupMessage .onLoad()
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyakirar committed Oct 2, 2023
1 parent 5b0e811 commit 07543fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
toset <- !(names(default_global_knitr) %in% names(op))
if (any(toset)) options(default_global_knitr[toset])

invisible()
}

.onAttach <- function(libname, pkgname) {
packageStartupMessage(
if (!requireNamespace("formatR", quietly = TRUE)) {
"For better code formatting, consider installing the formatR package."
}
)

invisible()
}

0 comments on commit 07543fa

Please sign in to comment.