Krome
Krome

Reputation: 371

How to use fread() with "https" url scheme?

In R Documentation for fread() it's said that "input" argument may be a URL starting http:// or file://. However in this "Introduction to data.table" vignette fread() is used with https:

flights <- fread("https://raw.githubusercontent.com/wiki/arunsrinivasan/flights/NYCflights14/flights14.csv")

That results in "Error in download.file(input, tt, mode = "wb") : unsupported URL scheme" console message.

I can't figure out how to make it work. I've tried settings options(download.file.method = "curl") or "auto", but nothing seems to help.

What am i doing wrong?

Upvotes: 5

Views: 3757

Answers (1)

Krome
Krome

Reputation: 371

As stated by @Arun, this has been implemented in data.table v1.9.5. One can install it by following these instructions

Upvotes: 4

Related Questions