Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 626
Krome Avatar asked Sep 28 '22 19:09

Krome


1 Answers

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

like image 183
Krome Avatar answered Oct 07 '22 19:10

Krome