At https://mac.r-project.org/openmp/ it says
"any package you compile against libomp.dylib will need that run-time so you have to ship it with your package or have users install it?
Are there any instructions on what to do/where to put libomp.dylib so it will be found?
I?ve compiled a package (OpenMx) in which OpenMP is working locally but other users get the error:
require(OpenMx)
Error: package or namespace load failed for ?OpenMx? in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/***/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so':
dlopen(/Users/***/Library/R/x86_64/4.4/library/OpenMx/libs/OpenMx.so, 0x0006): Library not loaded: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libomp.dylib
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th? ann an Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336.