Open matthewlewis896 opened 3 years ago
Thanks. Fine with me if this fixes things. I haven't tested the download script as I already saved the database separately.
In principle it should be possible to do a simple .Platform$OS.type
check on the OS and then implement specific behaviours.
In terms of priorities I judge this rather low though.
Would work with an already downloaded version for now since the N2000 database doesn't change that often (once every a year at most).
unzip
gives a warning and fails to unzip correctly on Windows.Having done some digging I believe this relates to
download.file()
and this post: https://stackoverflow.com/questions/12467001/download-file-fails-when-appending-a-random-suffix-to-the-filenameChanging the
mode
argument indownload.file()
to'wb'
fixes this behaviour. This has been implemented inmatt
branch.Need to check whether this affects ability of other OS to download or unzip files. @Martin-Jung