[Rd] bug fix Re: Matrix does not build with R trunk since Oct.

2013-02-19 Thread Hin-Tak Leung
Here is what make Matrix builds. I guess this means a new Matrix 1.0-12 will be released. r57849 is dec 2011, and in any case, a conditional based on precise svn version seems a bad idea. I haven't pinned point why it broke in Oct 2012, probably co-incide with the switch of R_SVN_VERSION's data

[Rd] Small quirks in summary.(g)lm docs

2013-02-19 Thread Milan Bouchet-Valat
Hi! In R 3.0.0 from current SVN, ?summary.lm says: > Value [...] > df degrees of freedom, a 3-vector (p, n-p, p*), the last >being the number of non-aliased coefficients. ?summary.glm says: > df a 3-vector of the rank of the model and the number of residual >degrees of freedom, plus numb

Re: [Rd] quote() vs quote(expr=)

2013-02-19 Thread Peter Meilstrup
It probably shouldn't be, but It's possible to bind a value to the missing symbol: x <- environment() eval(substitute(x$y <- "wat", list(y = quote(expr= ls() eval(quote(expr=)) I don't see a way to remove such a binding though. Peter On Tue, Feb 19, 2013 at 5:03 AM, peter dalgaard wrote:

Re: [Rd] quote() vs quote(expr=)

2013-02-19 Thread peter dalgaard
On Feb 18, 2013, at 19:31 , wrote: > I wouldn't count on any way of capturing this thing being reliable in > the long term. As I recall what I do in codetools and the compiler is > use features of missing() to test for it, but try to abstract those > uses into one or two places only so I can

Re: [Rd] Including modified R source code in a package

2013-02-19 Thread Duncan Murdoch
On 13-02-18 4:33 PM, Hadley Wickham wrote: Hi all, I would like to include a function that I have made by modifying an existing R function (bw.SJ and corresponding code in bandwidths.c). The header of bandwidths.c states: /* * R : A Computer Language for Statistical Data Analysis * bandwi