我在Ubuntu 16.04 32位上更新到R 3.4.0,现在我再也无法安装OpenStreetMap
了。
所有其他包工作正常。我试过删除R并重新安装它,但问题仍然存在。
关于该做什么的任何提示?
R CMD INSTALL OpenStreetMap_0.3.3.tar.gz
* installing to library ‘/home/berry/R/i686-pc-linux-gnu-library/3.4’
* installing *source* package ‘OpenStreetMap’ ...
** package ‘OpenStreetMap’ successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
in method for ‘raster’ with signature ‘"osmtile"’: no definition for class “osmtile”
in method for ‘raster’ with signature ‘"OpenStreetMap"’: no definition for class “OpenStreetMap”
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Segmentation fault (core dumped)
ERROR: loading failed
* removing ‘/home/berry/R/i686-pc-linux-gnu-library/3.4/OpenStreetMap’
在R中直接使用install.packages("OpenStreetMap")
时会发生同样的错误。
答案 0 :(得分:1)
它可能是一个错误,正如其他人所建议的那样:https://stackoverflow.com/a/45163268/3224432
报告的解决方法是为Java设置标志。这可以通过以下方式在R会话中完成:
options(java.parameters = "-Xss2560k") # or different parameters