[Rd] Incorrect comment about ISNA(x) in Arith.h (PR#13826)

2009-07-14 Thread rocket
R-2.9.0/include/R_ext/Arith.h has: int R_IsNA(double); /* True for R's NA only */ int R_IsNaN(double);/* True for special NaN, *not* for NA */ int R_finite(double); /* True if none of NA, NaN, +/-Inf */ #define ISNA(x)R_IsNA(x) /* True for *both* NA and N

[Rd] help (using ?) does not handle trailing whitespace (PR#11537)

2008-05-30 Thread rocket
> ?agrep > Results in: No documentation for 'agrep ' in specified packages and libraries: you could try 'help.search("agrep ")' There is white space after agrep, that ? doesn't ignore. --please do not edit the information below-- Version: platform = i486-pc-linux-gnu arch = i486 os = lin

[Rd] scoping problem when calling lm(precomputed formula, weights) from function (PR#11540)

2008-05-30 Thread rocket
I've run into a scoping problem in R. I'm calling a function that * creates a formula * calculates a weight vector * calls lm with that formula and weights This fails. Here's a simplified reproduce example: # f works, g doesn't, h is a workaround rm(w) data <- data.frame(y=runif(20), x=ru