无法在R Studio中安装spatialEco

时间:2018-10-15 07:51:25

标签: r anaconda rstudio spatial

我正在尝试在R中安装spacespaceEco

给我的错误如下:

    > install.packages("spatialEco", type = "source")
also installing the dependencies ‘units’, ‘sf’, ‘rgeos’

configure: error: in 
 `/private/var/folders/j6/bzjmvjns0_92545t_gbjkgcr0000gn
/T/Rtmp31qTqh/R.INS 
TALL2a7c4e9818c7/units':
configure: error: 
----------------------------------------------------------------------- 
---------
 Configuration failed because libudunits2.so was not found. Try 
installing:
* deb: libudunits2-dev (Debian, Ubuntu, ...)
* rpm: udunits2-devel (Fedora, EPEL, ...)
* brew: udunits (OSX)

 See `config.log' for more details
ERROR: configuration failed for package ‘units’
* removing ‘/Users/anon/anaconda3/envs/abc/lib/R/library/units’
ERROR: configuration failed for package ‘rgeos’
* removing ‘/Users/anon/anaconda3/envs/abc/lib/R/library/rgeos’
Warning in install.packages :
  installation of package ‘rgeos’ had non-zero exit status
ERROR: dependency ‘units’ is not available for package ‘sf’
* removing ‘/Users/anon/anaconda3/envs/abc/lib/R/library/sf’
Warning in install.packages :
  installation of package ‘sf’ had non-zero exit status
ERROR: dependencies ‘sf’, ‘rgeos’ are not available for package 
 ‘spatialEco’
  * removing ‘/Users/anon/anaconda3/envs/abc/lib/R/library/spatialEco’
Warning in install.packages :
  installation of package ‘spatialEco’ had non-zero exit status

是否可以在我的设备上安装spatialEco?

0 个答案:

没有答案