Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r/en] read.csv does not work for the url #2236

Closed
phsamuel opened this issue Apr 19, 2016 · 1 comment · Fixed by #2926
Closed

[r/en] read.csv does not work for the url #2236

phsamuel opened this issue Apr 19, 2016 · 1 comment · Fixed by #2926

Comments

@phsamuel
Copy link

I got error running

pets <- read.csv("http://learnxinyminutes.com/docs/pets.csv")

and the error message is

Error in file(file, "rt"): cannot open the connection

I am running R 3.2.5 on Ubuntu 14.04

However,

library(curl)
pets <- read.csv(curl("http://learnxinyminutes.com/docs/pets.csv"))

is fine

@aloisdg
Copy link
Contributor

aloisdg commented Jun 20, 2016

Also, you may use

require(RCurl)
pets <- read.csv(textConnection(getURL("http://learnxinyminutes.com/docs/pets.csv")))

source 1 2

Well, can you submit a pull request?

@Menelion Menelion changed the title read.csv does not work for the url [r/en] read.csv does not work for the url Sep 10, 2017
kaymmm added a commit to kaymmm/learnxinyminutes-docs that referenced this issue Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants