错误:对象 'ripras', 'as.ppp', 'delaunay' 未由 'namespace:spatstat' 导出



在执行代码时出现以下错误。

代码:install.packages("ithir",repos=";http://R-Forge.R-project.org"(

错误:

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/cloud-user/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
installing the source package ‘ithir’
trying URL 'http://R-Forge.R-project.org/src/contrib/ithir_1.0.tar.gz'
Content type 'application/x-gzip' length 4534681 bytes (4.3 MB)
downloaded 4.3 MB
* installing *source* package 'ithir' ...
** using staged installation
** R
** data
** byte-compile and prepare package for lazy loading
Error: objects 'ripras', 'as.ppp', 'delaunay' are not exported by 'namespace:spatstat'
Execution halted
ERROR: lazy loading failed for package 'ithir'
* removing 'C:/Users/cloud-user/AppData/Local/R/win-library/4.2/ithir'
Warning in install.packages :
installation of package ‘ithir’ had non-zero exit status

我正试着用它安装一个软件包。

错误消息在第一行中表示,在构建包之前,您需要安装Rtools。有关安装Rtools的信息,请访问CRAN.r-project.org。

根据https://r-forge.r-project.org/R/?group_id=2000您尝试安装的软件包上次更新是在2016年。从那时起,由于包存储库CRAN的要求,spatstat被拆分为许多较小的包。因此,在该站点上发现的ithir尝试调用spatstat中的函数,这些函数现在处于例如spatstat.geom中。如果你想使用这样一个旧的软件包,你还需要其他软件包的旧版本。您可以在以下位置找到可以与此软件包配合使用的旧版本的spatstat:https://cran.r-project.org/src/contrib/Archive/spatstat/

编辑:我刚刚注意到ithir似乎被移到了位桶中,不再依赖于spatstat。您可能应该从这里安装它:https://bitbucket.org/brendo1001/ithir/

相关内容

最新更新