How to use fread () with https url scheme?

In R Documentation for fread (), he said that the argument "input" could be a URL starting with 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") 

This results in the error "Error in file download.file (input, tt, mode =" wb "): unsupported URL for console message.

I can’t figure out how to make it work. I tried parameter settings (download.file.method = "curl") or "auto", but nothing helps.

What am I doing wrong?

+5
source share
1 answer

As pointed out by @Arun, this was implemented in data.table v1.9.5. You can install it by following these instructions.

+4
source

Source: https://habr.com/ru/post/1212824/


All Articles