Re: [R] twitteR return error message
this is my session information. I don't know how to edit my post so I reply it here > sessionInfo() R version 2.15.0 (2012-03-30) Platform: x86_64-pc-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_Singapore.1252 LC_CTYPE=English_Singapore.1252 LC_MONETARY=English_Singapore.1252 [4] LC_NUMERIC=C LC_TIME=English_Singapore.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] ROAuth_0.9.2digest_0.5.2twitteR_0.99.19 rjson_0.2.10 RCurl_1.95-3bitops_1.0-4.2 loaded via a namespace (and not attached): [1] tools_2.15.0 -- View this message in context: http://r.789695.n4.nabble.com/twitteR-return-error-message-tp4648841p4648845.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] twitteR return error message
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. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] clean Email format data
Dear all I am now going to do some text analysis using R. However, the data is very noisy that I need to clean it first. I don't have much experience in the text cleaning process. Is anyone would provide help on this? If you are able to provide some similar code which was done before would be greatly appreciated. May content is mainly the Feedback data through *Phone call record*: (usally the structure looks like the below one) *Email:* the common email corresponding , usually got a lot of history , and also some footnote such as "if you are not the intended reciepient... " etal.. I know it's quite a complex problem and can not be solved by a single answer,so, some tips is also very good, I will .. One example of the data: # Fyna. 24/06/2012 09:15 AM To cc Subject ase Mewrr asdffID:dde_20120624_15988015_11653024 * (keep this part)* CUSTOMER DETAILS Name : Mr dffa Company : da Address : ff Home No. : Office No. : Payphone Ext : Mobile No. : Fax No. : Email : CASE DETAILS Division : * dsaf (RIM) (keep this part)* Category 1 : * dsaf (RIM) (keep this part)* Category 2 : * dsaf (RIM) (keep this part)* Category 3 : Veh Reg Num : COMMENTS 24/06/2012 09:15:23 AM (Name) - Location @Ddaferdsdaf Rd Caller feedback Content.. ("*This part I need to keep*") NFORMANT STATES Date & Time : 24/06/2012 09:15:31 AM CSO ID : dasf https://MSCCasdfEB/LsdfA/Madsf.htm?pardsnDc?0pAsdoE9.=cS0eiIcp9m -- View this message in context: http://r.789695.n4.nabble.com/clean-Email-format-data-tp4634491.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Read txt File contains character ""
Thank you ! Rui Barradas . Yes, the arrow character "" can not be recoginised by R. the character will be treat as a stop command... So I replace all the character "" with space, then it works.. Just want to know is there any way for R to handle it. Not sure does eveybody able to view the character, it's looks like this. http://r.789695.n4.nabble.com/file/n4632369/arrow.png -- View this message in context: http://r.789695.n4.nabble.com/Read-txt-File-contains-character-tp4632286p4632369.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Read txt File contains character ""
Hi Dear friend, I encountered a problem when I read in one huge txt file which contains the character *""* when I run read.table("D:/test.txt",header=T,sep="\t",quote="") the lines can only be read before "" appears. Once "" appears, it will stop there. Could you help me on this . Many thanks. ! -- View this message in context: http://r.789695.n4.nabble.com/Read-txt-File-contains-character-tp4632286.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.