hisafer安装-如何解决硬编码的安装路径?

时间:2019-05-29 16:33:43

标签: r modeling

我正在按照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")

我应该怎么解决这个问题?

1 个答案:

答案 0 :(得分:0)

这与R 3.6.0引入的软件包staged installation有关。您可以通过将--no-staged-install选项传递给R CMD INSTALL来禁用它(如错误消息所建议的那样):

devtools::install_github("kevinwolz/hisafer", INSTALL_opts="--no-staged-install")