Using rtweet in RStudio Cloud

Hi there:

This code works fine on. my computer, but when running in Rstudio Cloud I get the error below. Is it possible to use rtweet inside RStudio Cloud?

install.packages('rtweet')
library(rtweet)
rt <- search_tweets(
  "#laurier", n = 100, include_rts = FALSE
)
str(rt)

Because RStudio Cloud runs on a server, you need to use "out of band" mode when requesting an authentication token. More reading can be found here: https://support.rstudio.com/hc/en-us/articles/217952868-Generating-OAuth-tokens-for-a-server-using-httr

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.