0

执行代码时:

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
  )

我收到以下错误:

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 <help@r-inla.org>.

我已经尝试更新 RStudio,以及安装所有包更新。有人对下一步尝试什么有建议吗?

4

0 回答 0