简体   繁体   English

无法在R 3.3.0中安装rgdal软件包

[英]Trouble installing rgdal package in R 3.3.0

Trying to install rgdal package in R 3.3.0 on Ubuntu 16.04 using install.packages("rgdal") and getting the following error: 尝试使用install.packages("rgdal")在Ubuntu 16.04上的R 3.3.0中安装rgdal软件包,并得到以下错误:

In file included from /usr/local/lib/R/site-library/sp/include/sp.h:13:0, from rgdal.h:15, from OGR_write.cpp:11: /usr/share/R/include/Sh:41:3: error: #error Sh can not be used from C++ code: use Rh instead # error Sh can not be used from C++ code: use Rh instead 在/usr/local/lib/R/site-library/sp/include/sp.h:13:0、rgdal.h:15、OGR_write.cpp:11中包含的文件中:/ usr / share / R / include / Sh:41:3:错误:无法从C ++代码中使用#error Sh:请改为使用Rh#无法从C ++代码中使用错误error:请改为Rh

anyone else seen this and know how to fix it? 其他人看到了这个,知道如何解决吗? Or do we need to wait for a fix to the rgdal package itself? 还是我们需要等待rgdal软件包本身的修复?

大胆的猜测:您可以尝试重新安装sp ,只是为了使任何依赖关系保持最新。

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

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