Skip to content

Commit

Permalink
Suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
koheiw committed Apr 7, 2024
1 parent 7395cf3 commit c89c03d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/proxy.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,9 @@ getThreads <- function() {
"omp" = as.integer(Sys.getenv("OMP_THREAD_LIMIT")),
"max" = cpp_get_max_thread())
default <- unname(min(default, na.rm = TRUE))

suppressWarnings({
value <- as.integer(getOption("proxyC.threads", default))
})
if (length(value) != 1 || is.na(value)) {
stop("proxyC.threads must be an integer")
}
Expand Down

0 comments on commit c89c03d

Please sign in to comment.