[R] twitteR return error message

climmi kewang.2009 at hotmail.com
Thu Nov 8 11:17:09 CET 2012


I am new to the packge twitteR
when using this package I came across several problems, can anybody help me
on those problems?
Many Thanks


rm(list=ls())
library(bitops)
library(RCurl)
library(rjson)
library(twitteR)
library(digest)
library(ROAuth)

        requestURL <- "https://api.twitter.com/oauth/request_token"
       accessURL = "https://api.twitter.com/oauth/access_token"
       authURL = "https://api.twitter.com/oauth/authorize"
       consumerKey = "**************"
       consumerSecret = "********************"

       twitCred <- OAuthFactory$new(consumerKey=consumerKey,
                                    consumerSecret=consumerSecret,
                                    requestURL=requestURL,
                                    accessURL=accessURL,
                                    authURL=authURL)

download.file(url="http://curl.haxx.se/ca/cacert.pem",
destfile="cacert.pem")
x <- getURL(url="http://curl.haxx.se/ca/cacert.pem", cainfo = "cacert.pem")

twitCred$handshake(cainfo="cacert.pem")
registerTwitterOAuth(twitCred)


me <- getUser('Rbloggers')  

#################       Error Message 1       
################################
#Error in function (type, msg, asError = TRUE)  : 
#  SSL certificate problem, verify that the CA cert is OK. Details:
#error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed
######################################################

test<-searchTwitter("lta",n=1000,lang="en",since='2012-01-01',
until='2012-11-02' )

#################       Error Message 2       
################################
#Error in .self$twFromJSON(out) : 
#  Error: Malformed response from server, was not JSON

## if change n=100, it will work..  why?
######################################################


#################       Error Message 3       
################################
#    I came across a tweet which contains very strange characters,
#  is there anyway to remove thos uncommon words which is not in the punct
or any known characters.
#  sorry not able to give the example here. I can not find it anymore
######################################################





--
View this message in context: http://r.789695.n4.nabble.com/twitteR-return-error-message-tp4648841.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list