Skip to content

Commit

Permalink
Fix cran note regarding too long cpu time
Browse files Browse the repository at this point in the history
  • Loading branch information
martinju committed Jan 7, 2025
1 parent 8c65bf8 commit 4e8537a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.onLoad <- function(libname = find.package("shapr"), pkgname = "shapr") {
# CRAN Note avoidance

# CRAN Note avoidance 1
# (as per https://stackoverflow.com/questions/77323811/r-package-to-cran-had-cpu-time-5-times-elapsed-time)
# CRAN OMP THREAD LIMIT
Sys.setenv("OMP_THREAD_LIMIT" = 1)

# CRAN Note avoidance 2:
utils::globalVariables(
c(
".",
Expand Down

0 comments on commit 4e8537a

Please sign in to comment.