我最近使用机器上的INLA.update更新了INLA。现在,每次我尝试从包中运行函数,如inla.mesh.2d,我都会收到以下错误:inla.call.buildin((中出错:inla安装错误;没有这样的文件我尝试卸载并重新安装INLA包的测试版和稳定版,但它仍然无法工作。我将粘贴在sessionInfo((的输出下面:
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] it_IT.UTF-8/it_IT.UTF-8/it_IT.UTF-8/C/it_IT.UTF-8/it_IT.UTF-8
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] INLA_22.01.16 sp_1.4-5 foreach_1.5.1 Matrix_1.3-4
loaded via a namespace (and not attached):
[1] compiler_4.0.3 tools_4.0.3 tinytex_0.32 splines_4.0.3 codetools_0.2-18 grid_4.0.3
[7] iterators_1.0.13 xfun_0.23 lattice_0.20-44
谢谢!
如果您将R更新到最新版本以满足INLA要求,则可能会解决您遇到的错误。重新启动,它可能会解决。
如果这不能解决问题,直接从R接口安装(与RStudio相比(可能会解决问题。此链接解释了它是如何完成的,如果第一个解决方案没有帮助,可能会有所帮助。
https://groups.google.com/g/r-inla-discussion-group/c/f3LAE2VHZQw