0

我尝试使用 dashDB 为 R 开发动手材料。我想使用 ggmap 包来处理地理空间数据,所以我在 Bluemix 提供的 RStudio 上键入了“install.packages("ggmap")”。

我得到了以下结果。我发现预装的包“ggplot”比所需的 ggmap 旧。

install.packages("ggmap")
:
Loading required package: rpart
Loading required package: rpart.plot
Loading required package: ggplot2
* installing *source* package ‘ggmap’ ...
** package ‘ggmap’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error : package ‘ggplot2’ 1.0.1 is loaded, but >= 2.0.0 is required by ‘ggmap’
ERROR: lazy loading failed for package ‘ggmap’
* removing ‘/mnt/blumeta0/home/dash101482/R/x86_64-redhat-linux-gnu-library/3.2/ggmap’
Warning in install.packages :
  installation of package ‘ggmap’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmps0c2yk/downloaded_packages’

云谁请告诉我如何解决或避免这个错误?

4

0 回答 0