Re: [Rd] multiple names to assign

2008-07-20 Thread Prof Brian Ripley
Warning does seem sensible (and there is already a test for length 0), so I've added one. Generally R has followed the Unix philosophy of not chatting and trying to make sense of the user's inputs (although it has multiple authors, and some advocate more of what others see as nannying). We

[Rd] garbage collection, preserved variables, and different outcome depending on --verbose or not

2008-07-20 Thread Laurent Gautier
Dear list, While trying to identify the root of a problem I am having with garbage collected variables, I have come across the following oddity: depending on whether --verbose is set or not, I obtain different results. I have made a small standalone example to demonstrate it. The example is very

Re: [Rd] garbage collection, preserved variables, and different outcome depending on --verbose or not

2008-07-20 Thread Duncan Murdoch
On 20/07/2008 9:01 AM, Laurent Gautier wrote: Dear list, While trying to identify the root of a problem I am having with garbage collected variables, I have come across the following oddity: depending on whether --verbose is set or not, I obtain different results. You are working with

Re: [Rd] garbage collection, preserved variables, and different outcome depending on --verbose or not

2008-07-20 Thread Laurent Gautier
I tripped on that while crafting the example. The problem still exists when moving the releases in the middle, and removing the last release. #include R.h #include Rdefines.h SEXP createObject(void) { SEXP x_R; int len_x = 100; PROTECT(x_R = allocVector(REALSXP, len_x));

Re: [Rd] garbage collection, preserved variables, and different outcome depending on --verbose or not

2008-07-20 Thread Duncan Murdoch
On 20/07/2008 10:02 AM, Laurent Gautier wrote: I tripped on that while crafting the example. The problem still exists when moving the releases in the middle, and removing the last release. I can't spot any problems in the new version of your code, but I can't reproduce the problem, either.

Re: [Rd] garbage collection, preserved variables, and different outcome depending on --verbose or not

2008-07-20 Thread Laurent Gautier
2008/7/20 Duncan Murdoch [EMAIL PROTECTED]: On 20/07/2008 10:02 AM, Laurent Gautier wrote: I tripped on that while crafting the example. The problem still exists when moving the releases in the middle, and removing the last release. I also see that the C code contains old/irrelevant

[Rd] R CMD check test examples with and without Suggest installed

2008-07-20 Thread Henrik Bengtsson
Hi, is there a way to have R CMD check test the example():s twice, once with all Suggest package hidden or once, if $R_check_force_suggests=1, with all Suggest available? BACKGROUND: I just had a case where my R.matlab package passed all R CMD checks on my local machine, but when I uploaded it

[Rd] License Conflict?

2008-07-20 Thread Gabor Grothendieck
Is this a true problem? Artistic License may conflict with GPL The source code for R contains references to both the GNU General Public License 2.0 (GPL) and to the Artistic License. These two licenses include some contradictory restrictions. The Ohloh source code parser is exhaustive, and can

[Rd] confusion about evaluation.

2008-07-20 Thread James Bullard
Hi All, I am confused about the following code. I thought that the problem stemmed from lazy evaluation and the fact that 'i' is never evaluated within the first lapply. However, I am then confused as to why it gets bound to the final element of the lapply. The environments of the returned