Re: [Rd] Surprising behavior of Negate()

2010-08-29 Thread Peter Dalgaard
On 08/30/2010 02:01 AM, Olaf Mersmann wrote: > This matches 'f' when Negate() is called and not the first time the return > value is used. If the current behavior is desired, maybe a note in the > documentation could be added to clarify this peculiarity. Looks like a classic lazy eval gotcha -- al

[Rd] Including C Code for Tcl and Tk in an R package

2010-08-29 Thread Adrian Waddell
Dear R Community, I adapted the C-Code found at (http://wiki.tcl.tk/25685) implementing fast image resizing for Tk images for my R package. The C Code differs for tcl/tk version 8.4 and 8.5. I have the working code for both versions. How do I integrate this C-Code into my package so that R CMD I

[Rd] Surprising behavior of Negate()

2010-08-29 Thread Olaf Mersmann
Dear R-developers, I find the current behavior of Negate() somewhat confusing. It does not match the passed function 'f' until the returned function is called for the first time. To see an example of what this can do see the following (contrived) example: f <- function(x) is.integer(x) not_f

[Rd] a small suggestion for improving the building of packages

2010-08-29 Thread Kyle Matoba
All, I just finished the process of build a package for the first time and found it characteristically (for R) very straightforward and well documented. Whenever I deal with open source software I always endeavor to finish the task I have in mind, and upon completing this, I then revisit all of t

Re: [Rd] Feature request: put NewEnvironment and R_NewhashedEnv into API

2010-08-29 Thread Oliver Flasch
Hi, as Seth Falcon in 2006, I also need to create new environments from package C code. Unfortunately, both NewEnvironment and R_NewHashedEnv are not yet part of the public API, if I understand correctly. Is it planned to add at least one of these functions to the public API in the near future