summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndre Polykanine A.K.A. Menelion ElensĂșlĂ« <andre@oire.org>2017-10-21 02:06:11 +0300
committerGitHub <noreply@github.com>2017-10-21 02:06:11 +0300
commit2e9cad560feeadc9ceebcf33101067c111ca4de5 (patch)
tree4215beab3a9fd29f02b73276e7e7c0cbaf7ed094
parent4d3637bfc4b23dabcb393547fcce0890cdd4e308 (diff)
parentb3cb49f69f0b4949c53339e0141011ff46612bbb (diff)
Merge pull request #2926 from kaymmm/r-require-curl
[r/en] Fix read.csv per #2926
-rw-r--r--r.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/r.html.markdown b/r.html.markdown
index 7a94ba05..e7486e60 100644
--- a/r.html.markdown
+++ b/r.html.markdown
@@ -663,7 +663,8 @@ require(plyr)
# "pets.csv" is a file on the internet
# (but it could just as easily be a file on your own computer)
-pets <- read.csv("http://learnxinyminutes.com/docs/pets.csv")
+require(RCurl)
+pets <- read.csv(textConnection(getURL("http://learnxinyminutes.com/docs/pets.csv")))
pets
head(pets, 2) # first two rows
tail(pets, 1) # last row