Re: [Rd] zip() containing windows specific code?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 30 Jan 2012 18:11:30 +0000

On 30/01/2012 17:24, Matthieu Stigler wrote:
> Dear R devel list
>
> I was wondering whether zip() contains a windows specific call to
> system(),

Actually, it does not contain a call to system() ....

as the argument "invisible" seems to be windows specific, yet
> is used anytime by zip:

And what is your problem here? R ignores the arguments to systems() where not needed.

> 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")
>
>
> Best
>
> Matthieu
>
> > sessionInfo()
> R version 2.14.1 (2011-12-22)
> Platform: x86_64-pc-linux-gnu (64-bit)
>
> locale:
> [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
> [11] LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] colorout_0.9-9
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 30 Jan 2012 - 18:15:02 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 30 Jan 2012 - 19:10:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive