Harika
Harika

Reputation: 1

Error in installing packages in R

I tried installing rtweet() in R but it shows the following error:

Error: package or namespace load failed for ‘rtweet’ in loadNamespace(j <- imp[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘Rcpp’

Upvotes: 0

Views: 4565

Answers (1)

Arthur Camberlein
Arthur Camberlein

Reputation: 85

As Russ said, you should try to install Rcpp before:

install.packages("Rcpp")

Or you could use the line:

install.packages("rtweet", dependencies = TRUE)

It will install rtweet and all dependencies like Rcpp

You could also, try to install it directly from URL:

install.packages("https://cran.r-project.org/web/packages/rtweet/index.html")

And if still fails, go directly to issues from rtweet (https://github.com/mkearney/rtweet/issues) ;-)

And also be careful, because R packages are case-sensitive!

Have a nice day!

Upvotes: 2

Related Questions