[Rd] zip() containing windows specific code?

Matthieu Stigler matthieu.stigler at gmail.com
Mon Jan 30 18:24:24 CET 2012

Dear R devel list

I was wondering whether zip() contains a windows specific call to 
system(), as the argument "invisible"  seems to be windows specific, yet 
is used anytime by zip:

invisible(system2(zip, args, invisible = TRUE))

Indeed, calling zip() on Linux results in a warning message:

>  file.create("try")

[1] TRUE

>  zip("try.zip", "try")

   adding: try (stored 0%)

Message d'avis :

In system2(zip, args, invisible = TRUE) :

   arguments 'minimized' and 'invisible' are for Windows only

>  unlink("try")



 > sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)

  [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8
  [5] LC_MONETARY=fr_FR.UTF-8    LC_MESSAGES=en_US.utf8
  [7] LC_PAPER=C                 LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] colorout_0.9-9

More information about the R-devel mailing list