我想安装一个在 CRAN 中找不到的包。
以下是该软件包的下载链接。该软件包使用 JAGS,我有 64 位 4.3.0 版本。
rjags
并r2jags
安装软件包。Rtools 连接到路径。我检查了这个使用
Sys.which("make")
## "C:\\rtools40\\usr\\bin\\make.exe"
devtools
通过此 Stacklink完成与路径的连接:
如何将 Rtools\bin 添加到 R 中的系统路径
我使用以下代码安装下载的 .tar.gz 包:
install.packages("C:/Program Files/R/R-3.6.3/Liszt_0.8-5_1.tar.gz", repos=NULL,
type="source")
该软件包不会安装,而是我收到以下错误:
* installing *source* package 'Liszt' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'Liszt'
finding HTML links ... done
A3ModelFun html
A5ModelFun html
Caterpillar html
LL html
Liszt-package html
extract html
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'rjags':
.onLoad failed in loadNamespace() for 'rjags', details:
call: fun(libname, pkgname)
error: Failed to locate any version of JAGS version 4
The rjags package is just an interface to the JAGS library
Make sure you have installed JAGS-4.x.y.exe (for any x >=0, y>=0) from
http://www.sourceforge.net/projects/mcmc-jags/files
Error : package 'rjags' could not be loaded
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/Sneve/Documents/R/win-library/3.6/Liszt'
Warning in install.packages :
installation of package ‘C:/PROGRA~1/R/R-36~1.3/Liszt_0.8-5_1.tar.gz’ had non-zero exit status
我尝试了一段时间没有,但没有成功。任何帮助深表感谢。
提供软件包的网站:
http ://www.possinghamlab.org/2016-05-30-04-33-10/list-length-analysis.html
包可在此处获得:
http ://www.possinghamlab.org/images/LLA/Liszt_0.8-5_1.tar.gz