[R] Problem reading R files
David Winsemius
dw|n@em|u@ @end|ng |rom comc@@t@net
Fri Apr 20 19:48:53 CEST 2018
> On Apr 19, 2018, at 11:21 PM, Jack Frazer <jack.fr81 using gmail.com> wrote:
>
> Dear R Developers,
>
> I hope this email finds you well.
>
> As a newcomer to the world of R, I'm trying different exercises. In my way,
> I faced with some, seemingly, trivial problems but there is not any
> response for that around the web. So, I thought can get help from you.
> Specifically, in tutorial presented at http://www.rdatamining.com/doc
> s/twitter-analysis-with-r, I faced with a problem on using OAuth. When I
> use the first approach, the following error will be occurred:
>
> [1] "Using browser based authentication"
> Error in curl::curl_fetch_memory(url, handle = handle) :
> Failed to connect to api.twitter.com port 443: Connection refused
Looks like you have not obtained a proper Twitter account and obtained a valid registration code to use the API. That should have been covered in your course materials.
> And when it comes to the second approach,
... the second approach? We are expected to work through that tutorial for you?
> the following error rises:
>
> [1] "Using direct authentication"
> Error in check_twitter_oauth() : OAuth authentication error:
> This most likely means that you have incorrectly called
> setup_twitter_oauth()'
>
Same issue most likely?
> Unfortunately, the online resources could not help. For example, all the
> solutions introduced in StackOverflow could not work for me.
>
> https://stackoverflow.com/questions/31128492/twitter-setup-t
> witter-oauth-failing
>
> *Moreover, in reading data from the current directory, the readRDS method
> sucks*.
Generally use of such a description will be viewed as at best useless and at worst offensive.
> I got same error using import() in rio package.
>
> https://stackoverflow.com/questions/49908803/error-in-reading-files-in-r
That posting describes entirely different issue. The first issue was that the file wasn't where you thought it was and the second error message that you posted in comments said it was the wrong format for the readRDS function.
There are two files with that name listed on the website and only one of them loads properly with readRDS.
>
> So, please let me know if you have some solution for the issues.
>
> Thanks for your consideration.
>
> Regards,
>
> Jack
>
> [[alternative HTML version deleted]]
Jack, you really should read the Posting Guide.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
David Winsemius
Alameda, CA, USA
'Any technology distinguishable from magic is insufficiently advanced.' -Gehm's Corollary to Clarke's Third Law
More information about the R-help
mailing list