Re: [Rd] Controlling simplification in apply()?

2012-02-20 Thread Prof Brian Ripley
On 20/02/2012 16:03, Gavin Simpson wrote: Dear list, Fully according to the documented behaviour, I was bitten by apply() simplifying results to vectors or arrays when the lengths of the individual objects returns by FUN are the same (over simplification). sapply() has argument simplify with de

Re: [Rd] text(1:10, col=NA) is printed in color 1 instead of color 0 (was "is not transparent")

2012-02-20 Thread Prof Brian Ripley
The documentation is out of date (and contradictory for cex). Nowadays NULL and NA for col and font correspond to the par() values, and for cex correspond to 1.0. So it is in fact _plotted_ in par("col"), which by default is 1. On 20/02/2012 18:16, Peter Ruckdeschel wrote: Am 20.02.2012 15:22

Re: [Rd] executable files R package

2012-02-20 Thread Prof Brian Ripley
On 20/02/2012 18:20, sahir bhatnagar wrote: sorry I don't seem to be getting it. I am working on windows XP. I have tried several ways of writing the 'BinaryFiles' which include file("C:/myPkg/inst/executables/win32/foo.exe") '\r\n' file("C:/myPkg/inst/executables/win32/foo.exe") CRLF "C:/myPkg/

Re: [Rd] executable files R package

2012-02-20 Thread sahir bhatnagar
sorry I don't seem to be getting it. I am working on windows XP. I have tried several ways of writing the 'BinaryFiles' which include file("C:/myPkg/inst/executables/win32/foo.exe") '\r\n' file("C:/myPkg/inst/executables/win32/foo.exe") CRLF "C:/myPkg/inst/executables/win32/foo.exe" CRLF and vari

Re: [Rd] text(1:10, col=NA) is printed in color 1 instead of color 0 (was "is not transparent")

2012-02-20 Thread Peter Ruckdeschel
Am 20.02.2012 15:22, schrieb Kasper Daniel Hansen: > Peter, > > not all devices support transparency. My guess is that you are > plotting to a device which does not, but it is hard to know from your > email. > > Kasper > In the meantime Kasper and I had some mail exchange offline. @Kasper: th

Re: [Rd] executable files R package

2012-02-20 Thread Prof Brian Ripley
On 20/02/2012 17:17, sahir bhatnagar wrote: thanks, I run into the following error message when running R CMD check "Source packages should not contain undeclared executable files" in reference to the following instruction from the help manual: "R CMD check will warn about them unless they are

Re: [Rd] executable files R package

2012-02-20 Thread sahir bhatnagar
thanks, I run into the following error message when running R CMD check "Source packages should not contain undeclared executable files" in reference to the following instruction from the help manual: "R CMD check will warn about them unless they are listed (one filepath per line) in a file Binar

[Rd] Controlling simplification in apply()?

2012-02-20 Thread Gavin Simpson
Dear list, Fully according to the documented behaviour, I was bitten by apply() simplifying results to vectors or arrays when the lengths of the individual objects returns by FUN are the same (over simplification). sapply() has argument simplify with default TRUE to control whether it attempts to

Re: [Rd] text(1:10, col=NA) is not transparent

2012-02-20 Thread Kasper Daniel Hansen
Peter, not all devices support transparency. My guess is that you are plotting to a device which does not, but it is hard to know from your email. Kasper On Mon, Feb 20, 2012 at 6:09 AM, Peter Ruckdeschel wrote: > Maybe I am missing something, but according to the help page > to par (section

[Rd] text(1:10, col=NA) is not transparent

2012-02-20 Thread Peter Ruckdeschel
Maybe I am missing something, but according to the help page to par (section "Color Specification"), which is referred to in the help to text argument col: β€˜"transparent"’ or (integer) β€˜NA’ is _transparent_, useful for filled areas (such as the background!), and just invisible for things like line