How to use fread() with “https” url scheme?

家住魔仙堡 提交于 2019-12-10 14:32:56

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/28370620/how-to-use-fread-with-https-url-scheme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!