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.

4
  • Possible duplicate of Error: package or namespace load failed for ggplot2 and for data.table Commented Feb 3, 2016 at 21:48
  • I still get same message each time I load an RStudio project. Commented Feb 3, 2016 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. Commented Feb 4, 2016 at 3:00
  • Will give that go, thanks. Commented Feb 4, 2016 at 21:57

1 Answer 1

1

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

install.packages('Rcpp', dependencies = TRUE)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.