I am using ubuntu 14.04. I have a problem installing Rcpp after I installed MRO 3.2.3 only to find out that the RevoMath lib did not install. So I had to remove and reinstall R but did not reinstall RStudio.
I researched what I could and read Dirk E's post on R CMD SHLIB which led me to this answer post listed below.
https://stackoverflow.com/a/14389028/5153539
I tried installing with your code and it looked like it was going to work but eventually got the same error as posted below (although I did not try to install Rcpp from the terminal using this method yet).
Any help would be greatly appreciated.
Error when installing Rcpp in RStudio on ubuntu 14.04:
installing source package ‘Rcpp’ ...
package ‘Rcpp’ successfully unpacked and MD5 sums checked Warning in file.copy(f, instdir, TRUE) : problem copying ./NAMESPACE to /home/briangriner/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/NAMESPACE: Permission denied Warning in file(file, ifelse(append, "a", "w")) :
cannot open file '/home/briangriner/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/DESCRIPTION':
Permission denied Error in file(file, ifelse(append, "a", "w")) : cannot open the connection ERROR: installing package DESCRIPTION failed for package ‘Rcpp’
removing ‘/home/briangriner/R/x86_64-pc-linux-gnu-library/3.2/Rcpp’