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