[Rd] cleanup_pkg() in tools:::.build_packages() is broken

2010-10-01 Thread Hervé Pagès
Hi, The cleanup_pkg() function defined the big tools:::.build_packages() function in tools/R/build.R is currently broken. When Makefiles are used cleanup_pkg() doesn't clean anything because of the way system2() is called. For example, the call to Ssystem() on line 304 (Ssystem is a silent ver

[Rd] Will PrintWarnings remain non static?

2010-10-01 Thread Jeffrey Horner
Hi, The C function PrintWarnings is currently not in the C API, but it is declared non static in the svn trunk as of revision 53110 . As this is the only function that creates the last.warning object used by the R function warnings(), I think it would be useful for programs that embed R to be able

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Joris Meys
Thank you for all your answers, this really helped me out. I've been digging into scoping rules in R and although I'm going to need quite some more studying to fully grasp it, I do see where the errors come from. Thanks again. @Erik : I know that some_value was not declared. I just gave some pseu

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread William Dunlap
One of the complaints in your stackoverlow references concerned doBy::transformBy and the error message came from eval(). Using eval() means you are throwing the usual scoping rules out the window and making up some new ones. Using a non-core package means you are at the mercy of its writer. In

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Duncan Murdoch
On 01/10/2010 12:00 PM, Joris Meys wrote: Dear, I'm following the r tag on stackoverflow.com, and couldn't but notice there are quite some questions popping up that deal with scoping in relation to custom functions. I grinded my teeth on it already, and I have absolutely no clue what goes wrong

Re: [Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Erik Iverson
Joris Meys wrote: Dear, I'm following the r tag on stackoverflow.com, and couldn't but notice there are quite some questions popping up that deal with scoping in relation to custom functions. I grinded my teeth on it already, and I have absolutely no clue what goes wrong. The general pattern i

[Rd] scoping goes wrong when some functions are used within others.

2010-10-01 Thread Joris Meys
Dear, I'm following the r tag on stackoverflow.com, and couldn't but notice there are quite some questions popping up that deal with scoping in relation to custom functions. I grinded my teeth on it already, and I have absolutely no clue what goes wrong. The general pattern is as follows : ff <-

[Rd] strange interaction between rasterImage and Grid graphics

2010-10-01 Thread baptiste auguie
Dear all, This may be specific to Mac, I haven't had a chance to test another platform. Consider this, plot(1,1,t="n") rasterImage(matrix(1),1,1,1,1) library(grid) grid.rect(gp=gpar(fill="grey")) The grid.rect covers the full device window as expected. However, when I resize the window ever so s