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

4

我正在按照由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个回答

3

这与R 3.6.0引入的分阶段安装包相关。您可以通过将--no-staged-install选项传递给R CMD INSTALL(如错误消息所建议的)来禁用它:

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接