rhub icon indicating copy to clipboard operation
rhub copied to clipboard

zip not found

Open sjentsch opened this issue 2 years ago • 2 comments

When testing my package on r-hub, I get the following error message:

Error in utils::zip(fleNme, "data.bin", flags = "-r9Xq") : argument 'zip' must be a non-empty character string

zip defaults to Sys.getenv("R_ZIPCMD", "zip")

It appears as if the string returned by Sys.env is empty on the following OSes: Fedora Linux, R-devel, clang, gfortran Fedora Linux, R-devel, GCC

sjentsch avatar Sep 11 '21 10:09 sjentsch

@sjentsch

I'm with same problem on other R program:

> export(mtcars, "mtcars.tsv.zip")
Error in utils::zip(cfile2, files = basename(filename)) :
  argument 'zip' must be a non-empty character string
> Sys.getenv("R_ZIPCMD", "zip")
[1] ""

Any clues how to fix? Cheers

nunotexbsd avatar Feb 29 '24 08:02 nunotexbsd

I switched to using the R-package zip instead of using the zip from utils. https://github.com/sjentsch/jmvReadWrite/blob/98be1a9f7f49d7b41f93156a7b7422596ccfcd04/DESCRIPTION#L26 https://github.com/sjentsch/jmvReadWrite/blob/main/R/read_omv.R https://github.com/sjentsch/jmvReadWrite/blob/98be1a9f7f49d7b41f93156a7b7422596ccfcd04/R/write_omv.R#L490

sjentsch avatar Feb 29 '24 08:02 sjentsch

This issue is about the previous R-hub system, it does not apply to the new system, so I am closing it now. Please see https://r-hub.github.io/rhub/ for the new system, R-hub v2.

gaborcsardi avatar May 09 '24 13:05 gaborcsardi