简体   繁体   English

无法在 R 3.6.3 中安装 package 'Liszt'(不在 CRAN 中)

[英]Can't install package 'Liszt' (not in CRAN) in R 3.6.3

I want to install a package that is not found in CRAN.我想安装一个在 CRAN 中找不到的 package。

Below is a downloadlink to the package.以下是 package 的下载链接。 The package makes use of JAGS, of which i have the 64 bit 4.3.0 version of. package 使用 JAGS,我有 64 位 4.3.0 版本。 rjags and r2jags packages are installed.已安装rjagsr2jags软件包。 Rtools is connected to the pathway. Rtools 连接到路径。 I checked this using我检查了这个使用

Sys.which("make")
## "C:\\rtools40\\usr\\bin\\make.exe" 

Connection to path was done with devtools from this Stacklink:使用此 Stacklink 中的devtools连接到路径:
How to add Rtools\bin to the system path in R 如何在 R 中将 Rtools\bin 添加到系统路径

I use the following code to install the downloaded.tar.gz package:我使用以下代码安装下载的.tar.gz package:

install.packages("C:/Program Files/R/R-3.6.3/Liszt_0.8-5_1.tar.gz", repos=NULL,
                 type="source")

The package won't installl, instead i get the following error: package 不会安装,而是我收到以下错误:

* 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

I am trying for a while no, but no success.我尝试了一段时间没有,但没有成功。 Any help is much appreciated.任何帮助深表感谢。

Website providing the package:提供 package 的网站:
http://www.possinghamlab.org/2016-05-30-04-33-10/list-length-analysis.html http://www.possinghamlab.org/2016-05-30-04-33-10/list-length-analysis.html

package is available here: package 可在此处获得:
http://www.possinghamlab.org/images/LLA/Liszt_0.8-5_1.tar.gzhttp://www.possinghamlab.org/images/LLA/Liszt_0.8-5_1.tar.gz

I installed the 64 Bit version of JAGS.我安装了 64 位版本的 JAGS。 Appearently, the package needs both the 32 and the 64 bit version installed on the PC to be able to work.显然,package 需要在 PC 上安装 32 位和 64 位版本才能工作。 After i installed also the 32 bit version of JAGS, package installed with no problem.在我安装了 32 位版本的 JAGS 之后,package 安装没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM