【发布时间】:2017-08-10 19:24:43
【问题描述】:
我有一个自动下载 CSV 文件的 HTTPS API 链接。我希望通过某个函数调用链接,直接通过 R 截取这个文件。
现在,我正在使用 download.file() 和 GET() 函数,但它们要么给出身份验证错误,要么给出乱码数据。
谁能帮帮我?
【问题讨论】:
-
您好,欢迎来到 StackOverflow。请花一些时间阅读帮助页面,尤其是名为"What topics can I ask about here?" 和"What types of questions should I avoid asking?" 的部分。更重要的是,请阅读the Stack Overflow question checklist。您可能还想了解Minimal, Complete, and Verifiable Examples。
-
可以 100% 使用
httr:GET()和其他httr函数来解决您的问题,但我们没有 MWE 可供使用。