0

When I try to load ggplot2 I receive the message:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘Rcpp’

I unable to find this message in previous answers. Can someone help, thanks.

I've downloaded everything from scratch, but I still get same message each time I load an RStudio project.

Julius Vainora
  • 47,421
  • 9
  • 90
  • 102
Farmer George
  • 47
  • 1
  • 2
  • 8
  • Possible duplicate of [Error: package or namespace load failed for ggplot2 and for data.table](http://stackoverflow.com/questions/31717850/error-package-or-namespace-load-failed-for-ggplot2-and-for-data-table) – erc Feb 03 '16 at 21:48
  • I still get same message each time I load an RStudio project. – Farmer George Feb 03 '16 at 22:30
  • I would try `sessionInfo()` make sure Rcpp is actually attached, if its not load it manually then try loading ggplot2. Assuming it is loaded or this doesn't help I'd try completely uninstalling and reinstalling R. Also maybe check and see if you get the same error working without RStudio. – admccurdy Feb 04 '16 at 03:00
  • Will give that go, thanks. – Farmer George Feb 04 '16 at 21:57

1 Answers1

1

Without further information about the error, this worked for me when it happened in my code

install.packages('Rcpp', dependencies = TRUE)
aeongrail
  • 1,304
  • 1
  • 13
  • 26