Questions tagged [twitter-r]

a package is intended to provide access to the Twitter API within `R` programming language

a package is intended to provide access to the Twitter API within R programming language. This package is intended to be combined with the ROAuth package as as of March 2013 the Twitter API requires the use of OAuth authentication.

29 questions
12
votes
3 answers

R: How to save lists into csv?

So im actually working on twitteR and i need a way to store my tweets into a csv file and pull it out when i need it . This is due to the idea i want to compile the tweets i collect and then apply them to my algorithms to do the calculations…
Napmi
  • 521
  • 2
  • 13
  • 32
5
votes
0 answers

JSON error using twitteR caused by RCurl proxy

I am trying to use twitteR's searchTwitter() function with a curl proxy, but I'm getting a JSON-related error. I see that a lot of people have gotten this same JSON error. But I believe the cause of mine is different, so I will try to be specific…
sph21
  • 300
  • 1
  • 3
  • 11
4
votes
0 answers

Non-character argument in R

While using twitteR package for R, I am getting the following error Error in strsplit(response, "&") : non-character argument twitter when trying to send my oauth credentials using this code cred <- OAuthFactory$new(consumerKey=consumerKey,…
StrawhatLuffy
  • 695
  • 1
  • 7
  • 17
4
votes
1 answer

TwitteR: 'searchTwitter' only returns a small set of tweets

I am trying to retrieve ~3000 tweets with keyword "nba" or hashtag "#nba" using twitteR function 'searchTwitter' but it only returns 299 tweets for "nba" and 398 tweets for "#nba" between 2013-01-01 and 2014-02-25. I am really confused, is this…
Blue482
  • 2,926
  • 5
  • 29
  • 40
3
votes
0 answers

Using R for Creating a complete twitter history

Since twitter decided to index all tweets since 2006 I am trying to use the twitteR package for R to create a complete user's tweet history. In the case below I am trying to create this for Jack Dorsey. I tried this with myself (short history on…
3
votes
1 answer

R twitteR package, get followers despite limit

I've been playing around with the R twitteR package and haven't figured out how to implement a system to collect more than the maximum per hour # of followers for a twitter user. I know the plan should be to collect the maximum, wait X amount of…
John McKay
  • 31
  • 1
  • 2
2
votes
0 answers

Markdown with Shiny not working on Mac. Error: path for html_dependency not provided Execution halted

I'm new to Shiny and I was just trying to see what's the result gonna look like and test out different data sets. I entered the code provided by Diego Lescano, you can find the full script here,…
LenaLD
  • 85
  • 2
  • 11
2
votes
1 answer

Getting data from twitter with R?

I am using R 3.1.3 on Platform: x86_64-apple-darwin13.4.0 (64-bit) and tm_0.6-2 version of package Here is my codes following:…
Ozgur Alptekın
  • 505
  • 6
  • 19
2
votes
4 answers

R and twitteR - userTimeline() function not returning the number of tweets requested

Why can't I get the number of tweets I request when I use the userTimeline() function in the twitteR package ? I now the limit request for a user timeline is 3200 tweets but I just get about 10% of that... Here are two examples : In this example…
leakciM
  • 82
  • 2
  • 14
2
votes
2 answers

retweeting using twitteR

Is it possible to retweet a status using the twitteR package (or just R in general)? For example, if I import a bunch of tweets and I want to retweet one of them: library(twitteR) # load ROAuth handshake (authorization to interact with Twitter) and…
Peter
  • 21
  • 2
1
vote
0 answers

Cannot get the PIN to connect with twitter

library(RCurl) library(ROAuth) consumerKey = "###" reqURL = "https://api.twitter.com/oauth/request_token" accessURL = "https://api.twitter.com/oauth/access_token" authURL = "https://api.twitter.com/oauth/authorize" …
Jyothi
  • 11
  • 3
1
vote
0 answers

Response token from the url that gives a status code

Using "rtweet" rPackage. Is there a way to get the response status of a query while fetching tweets from the twitter API? Something similar to the following : library(httr) github_api <- function(path) { url <- modify_url("https://api.github.com",…
SomeGuy123
  • 11
  • 3
1
vote
1 answer

Tweets returned by twitteR are shortened

I am using the twitteR package for R to collect some tweets. However, I noticed that the Tweet text returned by the searchTwitter function is not the complete tweet text, but abridged to equal exactly 140 characters with the rest of the text…
Sam Zipper
  • 642
  • 1
  • 7
  • 19
1
vote
0 answers

Using Twitter API in R

I am using the twitter api in R and trying to perform some analysis. I have a set of zip codes(lat/long) and I want to fetch all the twitter handles for a particular zip code. Is that possible? Need help on that. Thanks.
Chintan
  • 11
  • 1
1
vote
1 answer

Identifying mention on a comment and populating data frame

I'm trying to get mentions on twitter data like @someone @somebody from a data frame twitter and creating a new data frame with the information of who tweeted and which people they mentioned. Example: tweets <-…
februno
  • 13
  • 3
1
2