Warning “downloaded length != reported length” in installing packages from CRAN

后端 未结 3 1260
Happy的楠姐
Happy的楠姐 2021-01-07 18:01

Searching on stackoverflow questions, I found out this link: Error in file.download when downloading custom file .

However, my case is a little bit different (I thin

3条回答
  •  猫巷女王i
    2021-01-07 18:47

    For reference:

    I am running Windows Vista, and am getting the same error for various package installs (where the download size is reported to not equal the reported length despite the numbers displayed being equal). The packages appear to install correctly, despite the reported error.

    RStudio version 0.98.1091

    > SysInfo()

    release                                                 Vista x64
    version                                build 6002, Service Pack 2
    

    > version

    platform       x86_64-w64-mingw32          
    version.string R version 3.1.2 (2014-10-31)
    

    My guess (without any knowledge of the internals of the install.packages code) is that while integers are being reported, they are not being compared as integers, and so throwing the error.

提交回复
热议问题