Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem writing ZIP File on Windows Maschine (step2) #25

Closed
FloSeidel opened this issue Apr 4, 2023 · 1 comment
Closed

Problem writing ZIP File on Windows Maschine (step2) #25

FloSeidel opened this issue Apr 4, 2023 · 1 comment

Comments

@FloSeidel
Copy link

While running the whole step2 calculation I encountered a problem at the end while writing the zipfile. No Error was given but no zip file was created.

Setup:

  • RStudio
  • R 4.2.2
  • Windows Server 2019

We found the following solution while debugging (thanks @NandhiniS08 and @mematt)
Solution:
change the following code from the file ./Projectathon6-miracum1/step2/6_modeling_gamboost.R:

...
zip_file_name <- paste('westorm-step2-results-', conf$site, "-", Sys.Date(), "-coverage-", min(year), "-", max(year), "-totalcases-", sum(daily$total_count),  sep = "")
zip(zipfile = file.path(getwd(),'results', zip_file_name), files = files2zip, extras = '-j')
...

First we had to install the zip package:

install.packages("zip")
library(zip)

and than alter the lines above:

# adding the .zip extension
zip_file_name <- paste('westorm-step2-results-', conf$site, "-", Sys.Date(), "-coverage-", min(year), "-", max(year), "-totalcases-", sum(daily$total_count), ".zip",  sep = "")

# changing method
zip::zipr(zipfile = file.path(getwd(), 'results', zip_file_name), files = files2zip)

Hope nobody has this problem or can solve it with this :)

@mematt
Copy link
Contributor

mematt commented Apr 4, 2023

Dear @FloSeidel,

Thank you for raising this issue, providing the solution and for the debugging session. :)

We will leave this solution separately, as it had not occurred during the test phase at other sites and incorporating the library(zip) into the docker(hub) images would require substantial changes and potential novel errors.

@mematt mematt closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants