【问题标题】:How to use fread() with "https" url scheme?如何将 fread() 与“https”url 方案一起使用?
【发布时间】:2015-04-06 21:09:30
【问题描述】:

在 fread() 的 R 文档中,据说“输入”参数可能是一个以 http:// 或 file:// 开头的 URL。然而,在这个“Introduction to data.table”中,小插图 fread() 与 https 一起使用:

flights <- fread("https://raw.githubusercontent.com/wiki/arunsrinivasan/flights/NYCflights14/flights14.csv")

这会导致“download.file(input, tt, mode = "wb") 中的错误:不支持的 URL 方案”控制台消息。

我不知道如何使它工作。我尝试了设置选项(download.file.method = "curl")或 "auto",但似乎没有任何帮助。

我做错了什么?

【问题讨论】:

  • 这已在1.9.5 中实现。关注these instructions即可安装。
  • 谢谢@Arun,现在它就像一个魅力。
  • @Krome 你可以回答(并接受)你的问题,不要让它保持开放状态。
  • 谢谢,@Jan,我会做的。

标签: r https data.table fread


【解决方案1】:

正如@Arun 所述,这已在 data.table v1.9.5 中实现。关注these instructions即可安装

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-02
    • 2023-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-15
    • 2015-06-22
    相关资源
    最近更新 更多