[R] upgrading issues with Rcpp

Dirk Eddelbuettel edd at debian.org
Wed Feb 11 14:38:03 CET 2015


arnaud gaboury <arnaud.gaboury <at> gmail.com> writes:
> Now when trying to update Rcpp:
> 
> gabx <at> hortensia [R] install.packages("Rcpp")
> .............
> Error in unloadNamespace(pkg_name) :
>   namespace ‘Rcpp’ is imported by ‘reshape2’, ‘plyr’, ‘dplyr’ so
> cannot be unloaded
> ......................
> 
> I can't upgrade my packages because of Rcpp >=0.11.3 needed (running
> actually 0.11.2)
> 
> What is this namespace imported by  'reshape2’, ‘plyr’, ‘dplyr’ ? How
> can I get rid of it and upgrade my packages ?

I'd do 

  $ R --vanilla                  # to ensure nothing is loaded
  > install.packages("Rcpp")     # possibly set a repo

but what I really do is to use scripts update.r, install.r, install2.r, ...
from package littler which makes as this so much easier -- and do it on the 
command-line with "empty" R sessions.

Dirk





More information about the R-help mailing list