mardi 28 avril 2015

install package on rstudio server ubuntu 12.04.1

I followed the instructions on randyzwitch's blog (http://ift.tt/1rmkVID) to install r-studio server on ec2 instance running ubuntu 12.04.

When I start r-studio server and try to install packages, this is what was happening:

> install.packages("dplyr")
Warning in install.packages :
  package ‘dplyr’ is not available (for R version 2.14.1)
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  'lib = "/usr/local/lib/R/site-library"' is not writable
Would you like to create a personal library
~/R/x86_64-pc-linux-gnu-library/2.14
to install packages into?  (y/n) y
Warning in install.packages :
  package ‘dplyr’ is not available (for R version 2.14.1)

I realized I need to update R so I checked out this post and updated it: http://ift.tt/1PVm3AQ

I am logged in as sudo user. When I try to install package now, i get this:

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

trying URL 'http://ift.tt/1FwcAgk'
Content type 'application/x-gzip' length 2353791 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

trying URL 'http://ift.tt/1PVm33L'
Content type 'application/x-gzip' length 392136 bytes (382 KB)
==================================================
downloaded 382 KB

Warning in install.packages :
  system call failed: Cannot allocate memory
Warning in install.packages :
  installation of package ‘Rcpp’ had non-zero exit status
Warning in install.packages :
  system call failed: Cannot allocate memory
Warning in install.packages :
  installation of package ‘plyr’ had non-zero exit status

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

I saw this post : lme4 package install failing on Ubuntu 12.04 and followed all instructions but it didn't solve the problem. Still same result. Thoroughly frustrated with trying to run rstudio server on aws. Someone please help!




Aucun commentaire:

Enregistrer un commentaire