我已经成功地安装了rstan,但是当我尝试将它与library(rstan)连接时,我会得到一个弹出窗口,标题为"RGui (64位):Rgui.exe -入口点未找到“和消息内容。
在动态链接库C:\Users\MyName\Documents\R\win-library\4.0\Rcpp\libs\x64\Rcpp.dll.中无法找到过程入口点EXTPTR_PTR
在R控制台中我得到
> library(rstan)
Loading required package: StanHeaders
Loading required package: ggplot2
Error: package or namespace load failed for ‘rstan’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/Daniel/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.我正在运行4.0.0 (2020-04-24)“植树节”,在64位Windows机器上运行Windows 10。
我认为这可能是Rtools (Rtools 4.0 not found during package installation)的一个问题,但是重新安装rtools40并将它正确地添加到我的路径中--然后重新安装我的所有包以确保没有依赖问题-- rstan的问题依然存在。知道这里可能出了什么问题吗?我怎么才能让rstan工作呢?
发布于 2020-07-21 19:05:50
速成的:
但是我们在2中确实有很多关于这个问题的报道,所以请升级R到4.0.2并试一试。
发布于 2020-09-28 23:26:51
我们需要updata R.在您的脚本中执行以下操作:
首先安装软件包
install.packages("installr")然后:
library(installr)
updateR()在此之后,我们安装了最后一个R更新。
这有助于我修复Can't load the library in Windows - EXTPTR_PTR could not be located in the dynamic library的错误。
https://stackoverflow.com/questions/63021256
复制相似问题