How to insert variables in R twitteR updates?
Posted
by analyticsPierce
on Stack Overflow
See other posts from Stack Overflow
or by analyticsPierce
Published on 2010-04-19T16:03:48Z
Indexed on
2010/04/19
16:33 UTC
Read the original article
Hit count: 203
Hello, I am using the twitteR package in R to update my twitter status with results from analysis. The static tweet function works:
library(twitteR)
sess = initSession('username','password')
tweet = tweet('I am a tweet', sess)
However, when I add a variable to display some specific results I get an error.
library(twitteR)
sess = initSession('username','password')
res = c(3,5,8)
msg = cat('Results are: ', res, ', that is nice right?')
tweet = tweet(msg, sess)
Results in:
Error in twFromJSON(rawToChar(out)) :
Error: Client must provide a 'status' parameter with a value.
Any suggestions are appreciated.
© Stack Overflow or respective owner