Why do I need to use mode = wb with download.file() for this .rds file?

后端 未结 1 960
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-16 00:34

I was getting hung up on Shiny Apps Tutorial Lesson 5 because I was unable to open the counties.rds file. readRDS() threw: error reading fro

相关标签:
1条回答
  • 2021-01-16 01:03

    My suggestion is to always specify 'mode' regardless and that it pretty safe to always use mode="wb". I argue it the latter should be the default and that the automatic recognition by file extension is faulty and should not be relied upon, cf. https://stat.ethz.ch/pipermail/r-devel/2012-August/064739.html

    0 讨论(0)
提交回复
热议问题