В Mon, 29 Dec 2025 17:01:36 +0000
Naresh Gurbuxani <[email protected]> пишет:

> I removed data.table, then reinstalled using
> install.packages("data.table", type = "source"). Now data.table
> install has non-zero exit status.
> 
> Following instructions at https://mac.r-project.org/openmp/, I
> installed Open MP support by running on command line
> 
> curl -O
> https://mac.r-project.org/openmp/openmp-17.0.6-darwin20-Release.tar.gz
> sudo tar fvxz openmp-17.0.6-darwin20-Release.tar.gz -C /

Thank you very much for the detailed description of the problem.

For now, since you've installed the OpenMP runtime compatible with the
new Xcode version you're running, you can tell data.table to use it by
setting

Sys.setenv(PKG_LIBS = '/usr/local/lib/libomp.dylib')
install.packages('data.table', type = 'source')

...but be very careful not to use this build of data.table together in
the same session with other packages that use OpenMP. (You can
reinstall them from source in a similar manner to ensure that they are
compatible. Fortunately(?), almost no R packages on CRAN use OpenMP on
MacOS.)

Meanwhile, we'll need to figure out why the configure test fails when
CRAN builders compile data.table for macOS.

-- 
Best regards,
Ivan

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to