[Rd] eapply duplicates elements unnecessarily

2014-02-09 Thread Martin Morgan
eapply duplicates the elements of the environment it is being applied to > env = new.env(); x = 1; tracemem(x) [1] "<0x1758cd18>" > env[["x"]] = x > xx <- eapply(env, length) tracemem[0x1758cd18 -> 0x1758cbc8]: eapply but duplication seems unnecessary. I think this is because of 'duplicate' in

Re: [Rd] Question re: NA, NaNs in R

2014-02-09 Thread Prof Brian Ripley
There is one NA but mulitple NaNs. And please re-read 'man memcmp': your cast is wrong. On 10/02/2014 06:52, Kevin Ushey wrote: Hi R-devel, I have a question about the differentiation between NA and NaN values as implemented in R. In arithmetic.c, we have int R_IsNA(double x) { if (isnan

[Rd] Question re: NA, NaNs in R

2014-02-09 Thread Kevin Ushey
Hi R-devel, I have a question about the differentiation between NA and NaN values as implemented in R. In arithmetic.c, we have int R_IsNA(double x) { if (isnan(x)) { ieee_double y; y.value = x; return (y.word[lw] == 1954); } return 0; } ieee_double is just used for type punning so w

Re: [Rd] suggestion for "sets" tools upgrade

2014-02-09 Thread Carl Witthoft
No, I wasn't, so thanks for pointing me to that package. I think I'll still post my new toys, because "sets" fails the "obvious for dummies" test. I looked at the documentation, and while it's clearly a very powerful collection of functions, it's not obvious exactly what the family of "cset_

Re: [Rd] suggested addition to 'install.packages' help file

2014-02-09 Thread Prof Brian Ripley
On 06/02/2014 18:25, Patrick Burns wrote: I suggest that there be an additional sentence in the explanation for the 'repos' argument in the help file for 'install.packages': If the repository is on a local drive, then the string should begin with \code{file:}, e.g., \code{"file:J:/Rrepos"}. Pe