Open diazrenata opened 1 year ago
install.packages('roleR', repos = c('https://role-model.r-universe.dev/', 'https://cloud.r-project.org/'))
(from JI 😃)
As of May 8: running this line asks me to compile from source, but the auto release builds on the R-Universe repo appear to be running successfully (last week they were failing).
I just tried downloading the tar.gz on RUniverse and installing using R CMD INSTALL in terminal. That installed without asking me to compile from source, but upon opening R and running library(roleR):
> library(roleR)
Error: package or namespace load failed for ‘roleR’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/roleR/libs/roleR.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/roleR/libs/roleR.so, 0x0006): tried: '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/roleR/libs/roleR.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
In addition: Warning message:
package ‘roleR’ was built under R version 4.2.3
looks like an intel/M1 problem.
also I am on R 4.2.1 and should update eventually, but I think we also need to have back-compatibility at least that far anyway...
So to summarize:
It's kind of tautological but one temporary fix may be to create arm64 binaries using my computer and try the other binaries for other hardware.
https://github.com/r-universe/role-model