R 版本问题

问题描述

执行代码时:

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,以及安装所有软件包更新。有没有人对下一步尝试有什么建议?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...