From 2e2189171712a31cd20d77f67d4c192bc42c65b9 Mon Sep 17 00:00:00 2001 From: david-cortes Date: Tue, 11 Apr 2023 18:20:57 +0200 Subject: [PATCH] update link for hint about omp intall on mac --- R/fit.R | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/R/fit.R b/R/fit.R index 5320971..32ac912 100644 --- a/R/fit.R +++ b/R/fit.R @@ -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) }