Re: [Rd] tests Rin and Rout

2008-04-01 Thread cgenolin
Martin Maechler [EMAIL PROTECTED] a écrit : CG == Christophe Genolini [EMAIL PROTECTED] on Mon, 31 Mar 2008 00:31:55 +0200 writes: Generally I find it's good to look at examples that work. For examples of packages using tests, look at source packages on CRAN. Run the

Re: [Rd] callCC in 2.7.0

2008-04-01 Thread f.jamitzky
callcc is similar to the yield keyword in python and c# it lets you define e.g. a generator of lists of numbers. Gabor Grothendieck wrote: Would anyone like to explain if callCC in R 2.7.0 gives anything that on.exit does not already provide? It seems that the exit condition once

Re: [Rd] (PR#11054) Writing R Extensions: bad example with CAR

2008-04-01 Thread anders
Prof Brian Ripley wrote: I didn't say 'USE_RINTERNALS is not needed' for your code: I said it was not used for the code that was run. I see. My original point was that the text of the Writing R extension manual advises against using 'USE_RINTERNALS' but then gives an example that only works

Re: [Rd] tests Rin and Rout

2008-04-01 Thread cgenolin
hmm, I see 219 out 1378 CRAN packages having a 'tests' subdirectory, so it seems you have been a bit unlucky. ;-) How unlucky exactly? fisher.test(matrix(c(0,20,219,1159),2,2)) Hey, no, I desagree ! I random 10, the 10 first I take the ten first package. So this in not random. May be

Re: [Rd] (PR#11054) Writing R Extensions: bad example with CAR

2008-04-01 Thread anders
Dear Prof Ripley, Prof Brian Ripley wrote: But it is not taken 'verbatim from src/main/print.c' (at least not in that version of R), and the code is not run with USE_RINTERNALS defined when write-barrier checking is enabled. The example has been updated to match the current code in 2.7.0

Re: [Rd] callCC in 2.7.0

2008-04-01 Thread Luke Tierney
No. First class continuations of the kind provided in scheme can be used as a means to implement generators, but downward-only continuations as currently provided in R are not sufficient for that. This version is intended only as a non-local exit mechanism. Best, luke On Mon, 31 Mar 2008,

Re: [Rd] callCC in 2.7.0

2008-04-01 Thread Gabor Grothendieck
Can I suggest some clarification of the help page for callCC plainly stating that it is intended to exit from a deeply nested set of calls. On a casual reading I thought the exact same thing as f.jamitsky. On Tue, Apr 1, 2008 at 6:32 AM, Luke Tierney [EMAIL PROTECTED] wrote: No. First class