Closed markziemann closed 5 years ago
download.file("http://dee2.io/cgi-bin/request.sh?org=celegans&x=SRR363798&x=SRR363799",destfile="dee2data.zip")
Under windows, the ZIP file is being called invalid. No such problem with the Unix version.
Stack overflow to the rescue https://stackoverflow.com/questions/48832672/download-file-produces-invalid-zip-file-on-windows-but-works-fine-on-mac
this was due to the behaviour of download.file() in R trying to download as text file and not as binary. using the option mode="wb" fixed it
Under windows, the ZIP file is being called invalid. No such problem with the Unix version.