我需要在R4.1.1 (Windows 10)上安装R.由于较新的R安装与使用的其他工具的兼容性问题,我无法更新R版本。我试过这句话
remotes::install_version("INLA", version="22.05.03",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/testing"), dep=TRUE)如INLA网站建议的R4.1。我得到这条信息作为回报:
* installing *binary* package 'INLA' ...
cp: unknown option -- )
Try '/usr/bin/cp --help' for more information.
ERROR: installing binary package failed
* removing 'C:/Program Files/R/R-4.1.1/library/INLA'我安装了rtools40并将其添加到我的路径中。我已经安装了两个建议的软件包graph和Rgraphviz 按建议。
我也尝试过:
devtools::install_github(repo = "https://github.com/hrue/r-inla", ref = "stable", subdir = "rinla", build = FALSE)但那里也没有运气。
如果我在where cp终端中键入RStudio,就会得到:
$ where cp
C:\Program Files\Git\usr\bin\cp.exe
C:\rtools40\usr\bin\cp.exe但我不确定这是否与R没有找到cp有关。
有人有什么建议吗?
发布于 2022-09-12 00:47:09
我也遇到了同样的问题,并在我的Windows 10机器上解决了这个问题:
从INLA_22.05.03.zip下载https://inla.r-inla-download.org/R/stable/bin/windows/contrib/4.1/文件
在RStudio中,在Tools菜单下,选择,然后从:中安装。告诉RStudio .zip文件在本地机器上的位置。从那里起我安装得很好。
https://stackoverflow.com/questions/73465738
复制相似问题