Rstudio compiles .cpp files using Rcpp::sourceCpp and Rcpp::compileAttributes.
perhaps we can register a fake Rcpp so that Rcpp::sourceCpp calls attributes::sourceCpp so that sourceing a .cpp file in rstudio really uses attributes.
cc @jjallaire, @kevinushey