brry / rdwd

download climate data from DWD (German Weather Service)
https://bookdown.org/brry/rdwd
72 stars 13 forks source link

readDwd is creating error in a windows pc #24

Closed NandhiniS08 closed 4 years ago

NandhiniS08 commented 4 years ago

link <- selectDWD("XXXXXX", res="hourly", var="air_temperature", per="recent") file <- dataDWD(link, read=FALSE, dir=paste(getwd(),"/data/Weather_Hour/",sep = ""), quiet=TRUE) clim <- readDWD(file,type = "data" )

Am getting the error Der Befehl "unzip" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

English version - The command "unzip" is either misspelled or could not be found.

i am not able to find a installation of unyip for windows.

brry commented 4 years ago

try fread=FALSE in readDWD

NandhiniS08 commented 4 years ago

Thanks it worked. I thought the default value is FALSE.

brry commented 4 years ago

I set fread to NA in the last cran release. If you get the current development version, it should work with the default, see https://github.com/brry/rdwd/issues/23