Skip to content

Commit

Permalink
update link for hint about omp intall on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Apr 11, 2023
1 parent 22762c1 commit 2e21891
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,12 @@ validate.inputs <- function(model, implicit=FALSE,
if (nthreads > 1L && !.Call(R_has_openmp)) {
msg <- paste0("Attempting to use more than 1 thread, but ",
"package was compiled without OpenMP support.")
if (tolower(Sys.info()[["sysname"]]) == "darwin")
msg <- paste0(msg, " See https://mac.r-project.org/openmp/")
if (tolower(Sys.info()[["sysname"]]) == "darwin") {
msg <- paste0(
msg,
" See https://github.com/david-cortes/installing-optimized-libraries#4-macos-install-and-enable-openmp"
)
}
warning(msg)
}

Expand Down

0 comments on commit 2e21891

Please sign in to comment.