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 1/3] 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 6ff17972b3..25dceba4cc 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"]) } From b041812190d8af59f8c6c704ad352470f964f0d1 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 3 Dec 2024 04:39:04 -0800 Subject: [PATCH 2/3] tweak --- R/onAttach.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/onAttach.R b/R/onAttach.R index 25dceba4cc..5ca2ab7c93 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/. 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**********") + 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: '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"]) } From 9e71f050a2fc906a5eb473cb1d229293ae27eefc Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 3 Dec 2024 04:40:37 -0800 Subject: [PATCH 3/3] tweak further --- R/onAttach.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/onAttach.R b/R/onAttach.R index 5ca2ab7c93..c407b7d01e 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/. If you are a MacPorts users, reinstall data.table with OpenMP option: '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**********") + packageStartupMessagef("This is a Mac. Please read https://mac.r-project.org/openmp/. MacPorts users may reinstall data.table with the OpenMP flag: '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"]) }