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?
As stated by @Arun, this has been implemented in data.table v1.9.5. One can install it by following these instructions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With