0
votes

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’

1
Could you try installing Rcpp and post the error that returns, pleaseRuss Hyde
I tried that too. It shows: 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’Harika
upload screenshot of your r consoleMehul Katara
Please do not encourage posting screenshots.Dirk Eddelbuettel

1 Answers

2
votes

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!