weixin_39614561
weixin_39614561
2021-01-09 05:07

use curl to match readr download behavior

The preview to import CSV form https://data.consumerfinance.gov/api/views/s6ew-h6mp/rows.csv?accessType=DOWNLOAD does not work but the file can be imported.

The problem is that download.file fails from the IDE, while this works from readr since readr appears to be using curls: https://github.com/tidyverse/readr/blob/3715a2d0bcd7e028b4c0ffe03fce0fd7063ede18/R/source.R#L105

Fix is to match readr behavior in the IDE to allow us to download this file for preview purpuses.

该提问来源于开源项目:rstudio/rstudio

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

6条回答

为你推荐

换一换