[Rd] choose incorrect for fractional and some negative integer values (PR#10766)

2008-03-19 Thread jerry . lewis
choose(-5,-7) uses integer arguments (as specified in Help) and returns a numeric value that is incorrect. Either the function or the documentation should be fixed. If the function is not fixed, a warning or an error would be helpful. The fact that choose(n,k) usually returns

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
You should probably also survey existing attempts - I have written something with ruby that suggest some ideas. Fascinating, Hadley; do you have a link to the source, by any chance? I imagine doing it in Scheme, Ruby or any language, for that matter, where creating DSLs is cheap; would be a

Re: [Rd] Error in code2LazyLoadDB

2008-03-19 Thread Tony Chiang
Thanks for the note. There was a case of cyclic dependencies . Is there a way to make the error message a bit more transparent (for those of us who are a bit slow to figure it out)? On Wed, Mar 19, 2008 at 2:40 PM, Prof Brian Ripley [EMAIL PROTECTED] wrote: It means that when trying to prepare

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
I do not see the Roclets as mini-parsers, but as small R programs working on the parse tree/list returned by one big parser/lexer. So I imagine that coming up with the intermediate parse-tree representation would be part of the contract. What would you think, by the way, of writing the parser

Re: [Rd] 'merge' function: behavior w.r.t. NAs in the key column

2008-03-19 Thread Bill Dunlap
On Wed, 19 Mar 2008, Prof Brian Ripley wrote: merge() in R behaves in exactly the same way as match() (which it uses), and not as Mr Anders claims is 'the convention'. (Note that == and match are not the same concept, nor is 'identical'.) Splus's merge works more like x.key==y.key (or

Re: [Rd] Roxygen

2008-03-19 Thread Manuel J. A. Eugster
Hey Peter, I do not see the Roclets as mini-parsers, but as small R programs working on the parse tree/list returned by one big parser/lexer. So I imagine that coming up with the intermediate parse-tree representation would be part of the contract. Yes, sure. What would you think, by

Re: [Rd] Roxygen

2008-03-19 Thread hadley wickham
On Wed, Mar 19, 2008 at 4:15 PM, Peter Danenberg [EMAIL PROTECTED] wrote: You should probably also survey existing attempts - I have written something with ruby that suggest some ideas. Fascinating, Hadley; do you have a link to the source, by any chance? It's completely local. I'll send

Re: [Rd] choose incorrect for fractional and some negative integer values (PR#10766)

2008-03-19 Thread Ben Bolker
jerry.lewis at biogenidec.com writes: choose(-5,-7) uses integer arguments (as specified in Help) and returns a numeric value that is incorrect. Either the function or the documentation should be fixed. If the function is not fixed, a warning or an error would be helpful. The fact

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
It is desirable that these tags and their syntax and semantics be compatible with those used by Doxygen and Javadoc, but extended with tags important for R specific things. Doxygen, in particular, has some tags that are meaningless in R (@category and @protocol come to mind); wouldn't it be

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
You might also want to look at the Rdoc setup in the R.oo package. Hmm; Rdoc seems thorough enough. What remains to be desired? __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel