Re: [Rd] documentation for legend(): possible missing info for pch.

2012-12-09 Thread Prof Brian Ripley
On 07/12/2012 08:25, Laurent Gautier wrote: In the documentation for graphics::legend(), the entry for pch is: pch: the plotting symbols appearing in the legend, either as vector of 1-character strings, or one (multi character) string. _Must_ be specified for

[Rd] small issue with over-zealous clean.

2012-12-09 Thread Hin-Tak Leung
Noticed a problem for a while - tests/testit.Rd, tests/ver20.Rd are removed on make clean unintentionally. This seems to come from a change in tests/Makefile.in, which adds the line: -@rm -f *.tar.gz *.Rd back in May 2012. --- commit c4d70254e7b7f9d7ed17faecfb3097195d852ddc Author:

Re: [Rd] small issue with over-zealous clean.

2012-12-09 Thread Dirk Eddelbuettel
On 9 December 2012 at 18:17, Hin-Tak Leung wrote: | Noticed a problem for a while - tests/testit.Rd, tests/ver20.Rd are removed on make clean unintentionally. | | This seems to come from a change in tests/Makefile.in, which adds the line: |-@rm -f *.tar.gz *.Rd back in May 2012. | |

Re: [Rd] namespace S3 and S4 generic imports cannot both be satisfied:

2012-12-09 Thread John Chambers
Yes, you are right. Mixing S3 and S4 methods for a generic is fine, although in subtle cases one is safer promoting the S3 method to an S4 method, as you did in your example. Usually, the default method for the S4 generic is the S3 generic. But, in general, it's not possible to check

Re: [Rd] small issue with over-zealous clean.

2012-12-09 Thread Hin-Tak Leung
--- On Sun, 9/12/12, Dirk Eddelbuettel e...@debian.org wrote: On 9 December 2012 at 18:17, Hin-Tak Leung wrote: | Noticed a problem for a while - tests/testit.Rd, tests/ver20.Rd are removed on make clean unintentionally. | | This seems to come from a change in tests/Makefile.in, which adds

[Rd] Changing arguments inside .Call. Wise to encourage const on all arguments?

2012-12-09 Thread Paul Johnson
I'm continuing my work on finding speedups in generalized inverse calculations in some simulations. It leads me back to .C and .Call, and some questions I've never been able to answer for myself. It may be I can push some calculations to LAPACK in or C BLAS, that's why I realized again I don't

[Rd] How to locate a file quickly

2012-12-09 Thread Wincent
Dear all, During the development of R packages, more and more functions are written and some of them are placed in a file. After a while, I want to revised a function, but forget which file the function is in. Is there a recommended way of locate a function quickly? Thanks in advance. --

Re: [Rd] factor(x, exclude=y) if x is a factor

2012-12-09 Thread Suharto Anggono Suharto Anggono
After searching, I see that https://stat.ethz.ch/pipermail/r-help/2011-April/276274.html has mentioned this issue, perhaps more clearly. Thanks for pointing out Arguments section about 'exclude'. That documents the code exclude - as.vector(exclude, typeof(x)) A note: if x is a factor,