role-model / roleR

R package implementing the RoLE model
https://role-model.github.io/roleR
GNU General Public License v3.0
1 stars 2 forks source link

Pinning link to runiverse #100

Open diazrenata opened 1 year ago

diazrenata commented 1 year ago

https://github.com/r-universe/role-model

diazrenata commented 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).

diazrenata commented 1 year ago

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.