Code Monkey home page Code Monkey logo

Comments (3)

brry avatar brry commented on July 19, 2024

Here's the error structure reported by at least 2 people independently:

Error in data.table::fread(paste("unzip -p", f, fp), na.strings = na9(), : File is empty: [Rtempfile]
In addition: Warning messages:
1: running command 'C:\Windows\system32\cmd.exe /c (unzip -p [path].zip [pfile].txt) > [Rtempfile] had status 1
2: In shell(paste("(", input, ") > ", tt, sep = "")) : '(unzip -p [path].zip [pfile].txt) > [Rtempfile]' execution failed with error code 1

[pfile] being the produkt file, e.g. produkt_klima_tag_19370101_19860630_00001.txt
for [path] DWDdata/daily_kl_historical_tageswerte_KL_00001_19370101_19860630_hist.zip
or produkt_klima_tag_20160225_20170827_03987.txt for DWDdata/daily_kl_recent_tageswerte_KL_03987_akt.zip

from rdwd.

brry avatar brry commented on July 19, 2024

For 10 minute data, there is 64-bit formatted columns needing the package bit64 if fread=TRUE/NA.
See 5a3f38e

from rdwd.

brry avatar brry commented on July 19, 2024

A new error message was reported in #23, but I think it's the same problem.

'unzip' is not recognized as an internal or external command, operable program or batch file.
'(unzip -p [path].zip [pfile].txt) > [Rtempfile]' execution failed with error code 1
File '[Rtempfile]' has size 0. Returning a NULL data.frame. File contains no rows: [path].zip

It seems the system command unzip is not available by default on Windows (source).
On my computer, it is found in Rtools:
Sys.which("unzip") gives me c:\\Rtools\\bin\\unzip.exe

from rdwd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.