0

Think I had done this type of command successfully before

sudo su ­ ­c "R ­e \"install.packages('countrycode', repos='http://cran.rstudio.com/')\""

the screen reports

Installing package into '/usr/local/lib/R/site-library'

which is where other packages reside

I then get

downloaded 28kb

and it just says that the source packages are in a tmp folder before returning to the prompt

xb.
  • 1,617
  • 11
  • 16
pssguy
  • 3,455
  • 7
  • 38
  • 68

1 Answers1

0

This should work,

sudo R ­-e "install.packages('countrycode', repos='http://cran.rstudio.com/')"

You will be asked to type in your password and then it starts downloading and installation ...

xb.
  • 1,617
  • 11
  • 16
  • Thanks for suggestion. Same result. Just get same messages and end back at prompt with no request for password. BTW I am not having any problems moving files from my local computer onto the site – pssguy Feb 11 '14 at 03:55
  • Actually I think the code I had used before was slightly different sudo su ­- -­c "R ­e \"install.packages('ggplot2', repos='http://cran.rstudio.com/')\"" but that still gives same outcome – pssguy Feb 11 '14 at 04:01
  • @pssguy it is more like an issue of **permission**. I got only downloading with `sudo su - -c "R -e \"\""`; but with `sudo R -e ""` it works perfectly. Have you tried the steps below 1) `su` 2) `` 3) `R -e ""` . – xb. Feb 11 '14 at 19:46
  • I'm a complete novice here but the guy whose instructions I set up Ubunto on AWS says that the keypair I set up should give me access, which it still does for lading files from a local machine – pssguy Feb 12 '14 at 17:24
  • One suggestion is that the problem has only arisen since I set up git to install non CRAN packages. This procedure still works flawlessly. Could this be the case. If so, how would I uninstall. The installation command was sudo apt-get install git. Do I just substitute remove for install and then reinstall when I want to put up another non-CRAN package or is it more complicated cheers – pssguy Feb 12 '14 at 17:28