Skip to content
Prev 14725 / 15075 Next

procedure to ship libomp.dylib run-time with package

Tim,

There is no need to worry about libomp.dylib on macOS with CRAN packages as libomp is already shipped with R. When the package its built on CRAN, it will be pointed correctly to the version inside R.

However, in your output it seems that the problem may be that the user is using the wrong R version - the package is installed for R 4.4, but it seems to be looking for libomp in R 4.3. They are compatible, but the paths look wrong.  It is not clear to me what paths you used when building the package binary. Note that the package can only be installed for the same version that it has been compiled for. Also if you compile against libomp you have to either link against the version in R or use install_name_tool to change the linking path to make sure it points to the R version. Either way, check with tool -L to see what you are linking to.

Cheers,
Simon