无法在Rstudio服务器中安装Mapview

时间:2018-08-13 11:40:56

标签: rstudio rstudio-server

我无法在ubuntu上托管的Rstudio服务器中安装mapview。出现以下错误。有人可以帮忙

错误:


ERROR: configuration failed for package ‘gdtools’
* removing ‘/home/sshuser/R/x86_64-pc-linux-gnu-library/3.4/gdtools’
Warning in install.packages :
  installation of package ‘gdtools’ had non-zero exit status
ERROR: dependency ‘rgdal’ is not available for package ‘gdalUtils’
* removing ‘/home/sshuser/R/x86_64-pc-linux-gnu-library/3.4/gdalUtils’
Warning in install.packages :
  installation of package ‘gdalUtils’ had non-zero exit status
ERROR: dependency ‘units’ is not available for package ‘sf’
* removing ‘/home/sshuser/R/x86_64-pc-linux-gnu-library/3.4/sf’
Warning in install.packages :
  installation of package ‘sf’ had non-zero exit status
ERROR: dependency ‘gdtools’ is not available for package ‘svglite’
* removing ‘/home/sshuser/R/x86_64-pc-linux-gnu-library/3.4/svglite’
Warning in install.packages :
  installation of package ‘svglite’ had non-zero exit status
ERROR: dependencies ‘gdalUtils’, ‘sf’, ‘svglite’ are not available for package ‘mapview’
* removing ‘/home/sshuser/R/x86_64-pc-linux-gnu-library/3.4/mapview’
Warning in install.packages :
  installation of package ‘mapview’ had non-zero exit status

1 个答案:

答案 0 :(得分:0)

sudo apt-get install libproj-dev libgdal-dev

解决了我的问题。

相关问题