[Rd] Unexpected behavior in factor level ordering

2012-02-25 Thread Paul Johnson
Hello, Everybody: This may not be a "bug", but for me it is an unexpected outcome. A factor variable's levels do not retain their ordering after the levels function is used. I supply an example in which a factor with values "BC" "AD" (in that order) is unintentionally re-alphabetized by the level

Re: [Rd] Unexpected behavior in factor level ordering

2012-02-25 Thread Uwe Ligges
On 25.02.2012 19:16, Paul Johnson wrote: Hello, Everybody: This may not be a "bug", but for me it is an unexpected outcome. A factor variable's levels do not retain their ordering after the levels function is used. I supply an example in which a factor with values "BC" "AD" (in that order) is

[Rd] improved error message when existing implicit S4 generic is not imported?

2012-02-25 Thread Martin Morgan
pkgA's NAMESPACE has importFrom(graphics, plot) exportClasses("A") exportMethods("plot") R/foo.R has setClass("A") setMethod("plot", "A", function(x, y, ...) {}) During R CMD INSTALL pkgA_1.0.tar.gz we are told ** preparing package for lazy loading Creating a generic function for 'p