[Rd] different behaviour of NAs under valgrind (PR#14171)

2009-12-28 Thread schlather
Full_Name: Martin Schlather Version: 2.10.0 OS: linux Submission from: (NULL) (91.3.220.231) Bug summary: some functions behave differently for NAs when valgrind is used in R, e.g. sum and prod Bug demonstration: --- without valgrind > sum(c(NA,1)[1]) [1] NA --- with valgri

[Rd] bug in rep.unit method for grid arithmetic ? (PR#14170)

2009-12-28 Thread gunter . berton
The following code should suffice to document the problem. Things work properly in the following: > x <- unit.c(unit(5,"mm"),unit(3,"npc")) > x [1] 5mm 3npc > rep(x,2) [1] 5mm 3npc 5mm 3npc > rep(x, e=2) [1] 5mm 5npc 3mm 3npc > rep(x,c(2,2)) [1] 5mm 5npc 3mm 3npc However, not so for: > x

[Rd] R CMD SHLIB on Mac OS X fails when the default tempdir() is used (PR#14168)

2009-12-28 Thread osklyar
This is prompted by trying to run the 'inline' package on Mac OS X Leopard = with R 2.10.1. Mac uses completely crazy temp paths and R uses those as wel= l. The inline package creates source files in the temp directory which it t= hen compiles with R CMD SHLIB and attaches. The compilation fails wi

Re: [Rd] A package for visualizing R syntax

2009-12-28 Thread Sylvain Loiseau
Thanks! I have submitted a project on R-forge (not sure it is the good place), with package name "drawExpression". Sylvain Le 23 déc. 2009 à 23:16, Gabor Grothendieck a écrit : > or ExpressionBlocks > > On Wed, Dec 23, 2009 at 5:12 PM, Felix Andrews wrote: >> Nice idea. >> But I think "visual

Re: [Rd] as.Date function yields inconsistent results (PR#14166)

2009-12-28 Thread Tony Plate
I think you're right that this is a timezone issue -- it seems to be a consequence of the behavior described about in the article by Gabor Grothendieck and Thomas Petzoldt: "R help desk: Date and time classes in R." R News, 4(1):29-32, June 2004.

Re: [Rd] Locating code that is outside of functions in R scripts

2009-12-28 Thread Wolfgang Huber
Dear Gheine, you could also start creating your own package with these functions, and manage the code using R's well thought-out package management functionalities, with namespaces etc. At some point, this might be less effort than (re-)inventing tools as below. Best wishes