我正在按照Kevin Wolz领导的作者的指示安装hisafer软件包(用于生物物理建模):
install.packages("devtools")
devtools::install_github("kevinwolz/hisafer")
在这里我得到了答案:
...
write_param_file html
write_weather html
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
ERROR: hard-coded installation path: please report to the package maintainer and use '--no-staged-install'
* removing 'C:/Users/houska/Documents/R/R-3.6.0/library/hisafer'
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/houska/AppData/Local/Temp/RtmpI5hUAl/file32dc572b4098/hisafer_1.4.14.tar.gz’ had non-zero exit status
以下命令不起作用,然后:
library(hisafer)
vignette("hisafer-vignette")
我应该怎么解决这个问题?
答案 0 :(得分:0)
这与R 3.6.0引入的软件包staged installation有关。您可以通过将--no-staged-install
选项传递给R CMD INSTALL
来禁用它(如错误消息所建议的那样):
devtools::install_github("kevinwolz/hisafer", INSTALL_opts="--no-staged-install")