Ubuntu 12.04 R install.packages () does not work. No warnings, no installation

I am running an ubuntu 12.04 instance and downloading R3.0.2, but I cannot install install.packages () to install the packages. It downloads files, but does not seem to install them. Am I missing something? I never had this problem before starting instances of ubuntu R. By the way, I tried to start the process as root, created using sudo R from the command line, but still no warning, without installation. By the way, this problem is consistent in all packages that I tried to install.

Here is an example:

> install.packages("dataview")
Installing package into ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.0
(as ‘lib’ is unspecified)
also installing the dependency ‘xtermStyle’

trying URL 'http://cran.rstudio.com/src/contrib/xtermStyle_2.2-4.tar.gz'
Content type 'application/x-gzip' length 15265 bytes (14 Kb)
opened URL
==================================================
downloaded 14 Kb

trying URL 'http://cran.rstudio.com/src/contrib/dataview_1.4-8.tar.gz'
Content type 'application/x-gzip' length 10696 bytes (10 Kb)
opened URL
==================================================
downloaded 10 Kb


The downloaded source packages are in
    ‘/tmp/Rtmp6FevA0/downloaded_packages’
> library(dataview)
Error in library(dataview) : there is no package called ‘dataview’ 

For what it's worth, I installed R with the following shell commands

#remove old versions
sudo apt-get remove r-base-core
#Adding deb to sources.list
sudo nano /etc/apt/sources.list    
deb http://cran.rstudio.com/bin/linux/ubuntu precise/

# Add key to sign CRAN packages
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
#Add specific PPA to the system
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
#installing
sudo apt-get install r-base
sudo apt-get install r-base-dev

Thanks in advance for any help.

+3
source share
7 answers

(!!!) . mongodb R install.packages() Apache2 ( , ).

sudo service mongodb stop

, R . mongo , . , -. "" ( , - ) EC2 ( , EC2), :

#install mongodb:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
sudo apt-get update
sudo apt-get install mongodb-10gen

#install lamp server:
sudo tasksel #get lamp and openssh 

#install R
sudo nano /etc/apt/sources.list   
deb http://cran.rstudio.com/bin/linux/ubuntu precise/
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base
sudo R

R:

install.packages( "dataview" ) #

, , .

, mongo

sudo service mongodb stop

R , . , (, , , ), . , install.packages() , mongodb Apache, Apache .

, 64- Ubuntu 12.04 R 3.0.2, Mongodb-10gen Apache2.

+4

, , :

R sudo su. . , , R try , /usr/local/lib/R/site-library.

, . , , R, /home/ubuntu/R/x86_64-pc-linux-gnu-library/3.0 /usr/local/lib/R/site-library root , .

.

+1

, , . , . , , mysql R ( install.packages() , , ). . , , R + ( RStudio Server, , ). mysql , R

Error in system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE) : 
cannot popen '/usr/bin/which 'pdflatex' 2>/dev/null', probable reason 'Cannot allocate memory'

(, , ). , (/ apache2), - ( taskel, . ), ( (!))

sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

sudo service mysql stop

R. R - install.packages(), tasksel, , , , , mongo , .

, - . , - , , - mysql R.

, R 3.0.2, apache2 ubuntu 12.04. ubuntu 13.10, , ( ).

+1

, ... , . VM Vagrant 512 ... 2048 , ...

, :

  config.vm.provider "virtualbox" do |vb|
    # Use VBoxManage to customize the VM. For example to change memory:
    vb.customize ["modifyvm", :id, "--memory", "2048"]
  end
+1

CentOS, , , :

- , /data/Rpackages, R tar.gz,

install.packages("RMySQL", destdir="/data/Rpackages/")

( , , ):

install.packages(repos=NULL, pkgs="/data/Rpackages/DBI_0.2-7.tar.gz")
install.packages(repos=NULL, pkgs="/data/Rpackages/RMySQL_0.9-3.tar.gz")
0

Ubuntu Server 14.04 LTS AWS... t1.micro 600 .... , , .

EC2 : swap EC2?

0

All Articles