如何使用fread()与“https”网址方案? [英] How to use fread() with "https" url scheme?

查看:240
本文介绍了如何使用fread()与“https”网址方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在R文档中的fread(),它说input参数可能是一个开始http://或file://的URL。但是,在此数据表简介 vignette fread()用于https:

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")

.file(input,tt,mode =wb):unsupported URL schemeconsole message。

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

我无法弄清楚如何使它工作。我尝试了设置选项(download.file.method =curl)或auto,但似乎没有什么帮助。

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.

我做错了什么? / p>

What am i doing wrong?

推荐答案

如@Arun所述,这已在data.table v1.9.5中实现。您可以按照这些说明安装。

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

这篇关于如何使用fread()与“https”网址方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆