Re: [Rd] Because it's Friday. was creating environments in package's C code

2009-10-02 Thread spencerg
I hope you will forgive a serious comment on this thread, but the new "sos" package makes "greping through the headers" shockingly easy. It returns the 'RSiteSearch( ___ , "function")' information in a data.frame of class "findFn" sorted to put the package with the most matches first. Du

[Rd] Because it's Friday. was creating environments in package's C code

2009-10-02 Thread Jeffrey Horner
Simon Urbanek wrote on 10/01/2009 11:51 AM: [...] I suspect you like reinventing the wheel ;). Your NewInteger is part of the R API and is called ScalarInteger(). When you need something, chances are that R has it already, so it's worth greping through the headers (and sometimes even through th