Skip to content
Prev 14792 / 15075 Next

Problems with R-4.4.2 in MacOS Sequoia with Intel chip

Dear Simon 

I understand your responses and your point. I hope you'll be able to understand my problem. It is hard to provide a simple working example, since we need to find a case where a package loads an OpenMP library that conflicts with the OpenMP library loaded by R. 

Replicating the problems I'm facing can be done by following the same actions I did. Please run the following commands on an R terminal to get the same error as we have using version R-4.4.2

== r code
% install.packages(?sits?)
% devtools::test(?sits?)
=== 

You should get the same error as I do. 

As I stated earlier, there is a conflict between ?libomp.dylib" loaded in the R core libraries and the "libiomp5.dylib" loaded by the ?torch? package.  Since our package (?sits?) uses the torch package,  I did the following experiment: (a) removed ?libomp.dylib? from the R core libraries;  and (b) ran the same two lines above. Everything works. 

Meanwhile, I will try to produce an MWE that does not need to use the ?sits? package. 

Best regards
Gilberto

============================
Prof Dr Gilberto Camara
Senior Researcher
Getulio Vargas Foundation (FGV)
National Institute for Space Research (INPE), Brazil
https://gilbertocamara.org/
=============================