From 87375669a50519376d48f6fa41252df263d3c8bf Mon Sep 17 00:00:00 2001 From: gurbuxanink <48993383+gurbuxanink@users.noreply.github.com> Date: Sun, 15 Sep 2024 08:59:43 -0400 Subject: [PATCH] Update onAttach.R On mac, data.table installation is now much simpler than described in wiki. For MacPorts users, a simple command "sudo port install r-data.table +openmp" will work. There is no need to use Makevars file. --- R/onAttach.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/onAttach.R b/R/onAttach.R index 6ff17972b..25dceba4c 100644 --- a/R/onAttach.R +++ b/R/onAttach.R @@ -31,7 +31,7 @@ if (!.Call(ChasOpenMP)) { packageStartupMessagef("**********\nThis installation of data.table has not detected OpenMP support. It should still work but in single-threaded mode.\n", appendLF=FALSE) if (Sys.info()["sysname"] == "Darwin") - packageStartupMessagef("This is a Mac. Please read https://mac.r-project.org/openmp/. Please engage with Apple and ask them for support. Check r-datatable.com for updates, and our Mac instructions here: https://github.com/Rdatatable/data.table/wiki/Installation. After several years of many reports of installation problems on Mac, it's time to gingerly point out that there have been no similar problems on Windows or Linux.\n**********") + packageStartupMessagef("This is a Mac. Please read https://mac.r-project.org/openmp/. If you are a MacPorts users, reinstall data.table with openmp option: "sudo port install r-data.table +openmp". Please engage with Apple and ask them for support. Check r-datatable.com for updates, and our Mac instructions here: https://github.com/Rdatatable/data.table/wiki/Installation. After several years of many reports of installation problems on Mac, it's time to gingerly point out that there have been no similar problems on Windows or Linux.\n**********") else packageStartupMessagef("This is %s. This warning should not normally occur on Windows or Linux where OpenMP is turned on by data.table's configure script by passing -fopenmp to the compiler. If you see this warning on Windows or Linux, please file a GitHub issue.\n**********", Sys.info()["sysname"]) }