简体   繁体   中英

UBUNTU 14.04 - Rstudio - unable to install ggmap library

I'm trying to install ggmap library in my Rstudio but I get the following error:

ERROR: dependency ‘rjson’ is not available for package ‘ggmap’.

Is there any other way of installing it, I tried via menu Tools - Install packages or via console with command install.packages("ggmap").

How can I make it work?

Wild guess (for missing dependency):

sudo apt-get install r-base r-base-dev

sudo apt-get install r-cran-rjson

Filelist of r-cran-rjson package

or installation from Launchpad:

sudo add-apt-repository ppa:opencpu/rstudio
sudo apt-get update
sudo apt-get install rstudio-server

Please see this reference for details

first install rjson library using command prompt

install.packages("rjson",depend =TRUE)

Now install ggmap library
1.install.packages("rjson",depend =TRUE)
OR
2.Download and unzip

http://cran.r-project.org/web/packages/ggmap/index.html

If it doesn't work do

update.packages(repos="http://cran.revolutionanalytics.com")

Best Way is to open synaptic :

  • tap rjson
  • right-click ( select for installation )
  • apply
  • close synaptic and in R session install.packages("ggmap")

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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