R Version Issue

886 views Asked by At

When executing the code:

N <- 100 # 500, 5000, 25000, 100000
x <- rnorm(N, mean = 6, sd = 2)
y <- rnorm(N, mean = x, sd = 1)
data <- list(x = x, y = y, N = N)

inla(y ~ x,
  family = "gaussian",
  data = data,
  control.predictor = list(link = 1),
  verbose=TRUE
  )

I get the following error:

dyld: Library not loaded: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/INLA/bin/mac/64bit/inla
  Reason: Incompatible library version: inla requires version 4.0.0 or later, but libR.dylib provides version 3.5.0
dyld: Library not loaded: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libR.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/INLA/bin/mac/64bit/inla
  Reason: Incompatible library version: inla requires version 4.0.0 or later, but libR.dylib provides version 3.5.0
Error in inla.inlaprogram.has.crashed() : 
  The inla-program exited with an error. Unless you interupted it yourself, please rerun with verbose=TRUE and check the output carefully.
  If this does not help, please contact the developers at <[email protected]>.

I have tried updating RStudio, as well as installing all package updates. Do anyone have suggestion for what to try next?

0

There are 0 answers