不能再在R中安装rgeos和rgdal

oknwwptz  于 2023-07-31  发布在  其他
关注(0)|答案(1)|浏览(170)

我无法在R版本4.1.3中安装rgeos或rgdal包。这些软件包一个月前工作得很好,然后我重新格式化了我的计算机并重新安装了R。
这就是我所尝试的:

install.packages('rgeos', type="source")
install.packages('rgdal', type="source")

字符串
这是我在安装时得到的消息-我确实安装了Rtools。

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/bhauptman/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rgeos_0.5-9.tar.gz'
Content type 'application/x-gzip' length 290240 bytes (283 KB)
downloaded 283 KB
        
* installing *source* package 'rgeos' ...
** package 'rgeos' successfully unpacked and MD5 sums checked
** using staged installation
        
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rgeos'
* removing 'C:/Users/bhauptman/Documents/R/win-library/4.1/rgeos'
* restoring previous 'C:/Users/bhauptman/Documents/R/win-library/4.1/rgeos'
Warning in install.packages :
installation of package ‘rgeos’ had non-zero exit status
        
The downloaded source packages are in           ‘C:\Users\bhauptman\AppData\Local\Temp\Rtmp0sTf6q\downloaded_packages’

相关问题