[Rd] as.Date nuance

2007-03-23 Thread Vladimir Dergachev
Hi, I have encountered a nuance in as.Date() behaviour that is not altogether obvious - not sure whether this is intended or not: > as.Date("2001-01-01error") [1] "2001-01-01" I.e. it ignores the rest of the characters. This happens both in 2.3.1 and 2.4.1 versions. This also happens wit

Re: [Rd] [R] can't load just saved R object "ReadItem: unknown type 65"

2007-03-23 Thread Mark W Kimpel
Luke, I'll be gone for about 2 weeks but will work on getting you a reproducible example when I get back. If this topic comes up with anyone else, please copy me on your responses as I may miss it in the 600 emails I'll have to delete on my return :) Mark Luke Tierney wrote: > According to the

Re: [Rd] cbind() & rbind() for S4 objects -- 'Matrix' package changes

2007-03-23 Thread Martin Maechler
Thank you, Luke, for your feedback, (more inline below) > "Luke" == Luke Tierney <[EMAIL PROTECTED]> > on Tue, 20 Mar 2007 20:27:18 -0500 (CDT) writes: Luke> On Tue, 20 Mar 2007, Martin Maechler wrote: >> As some of you may have seen / heard in the past, >> it is not

Re: [Rd] how to use debug.mypkg

2007-03-23 Thread cstrato
Thank you all for your suggestions, I have implemented the OPTIONS "option", since it allows to define other options, too. Yes, I use now the Collate field, since it gives me the possibility to organize my files in the way I want. Best regards Christian Benilton Carvalho wrote: > it doesn't mat

Re: [Rd] Bug in str or issue with class management in my package?

2007-03-23 Thread Ulrike Grömping
Martin, I agree, if the naive changing of class (like also in  Martina Morgan's simpler example below) causes issues later, it would be best if it throws an error straight away. That would have forced me to think about the correct way of changing the class immediately. I have experienced no prob

Re: [Rd] Bug in str or issue with class management in my package?

2007-03-23 Thread Martin Maechler
Hi, > "Ulrike" == Ulrike Grömping <[EMAIL PROTECTED]> > on Fri, 23 Mar 2007 08:39:32 -0700 (PDT) writes: Ulrike> Martin, Ulrike> thank you, you've pointed me in the right direction! I just wasn't aware Ulrike> that a slot must not be unassigned (everything but str worked

Re: [Rd] Bug in str or issue with class management in my package?

2007-03-23 Thread Ulrike Grömping
Martin, thank you, you've pointed me in the right direction! I just wasn't aware that a slot must not be unassigned (everything but str worked so far, and even str works in R 2.3.1). Actually, looking up the help for function new, I see that the solution is much easier, because my class relimpl

Re: [Rd] how to use debug.mypkg

2007-03-23 Thread Paul Gilbert
Here is the way I do something similar in my dse1 package: ..onLoad <- function(library, section) { .DSEflags(list(COMPILED=TRUE, DUP=TRUE)) invisible(TRUE) } ..DSEflags <- local({ .DSE.flags <- character(0) function(new) { if(!missing(new)) .DSE.flags <<-

Re: [Rd] Bug in str or issue with class management in my package?

2007-03-23 Thread Martin Morgan
Ulrike, booteval.relimp has the statement ausgabe <- calc.relimp(empcov, type = type, diff = diff, rank = rank, rela = rela, always = always, groups = groups, groupnames = groupnames) class(ausgabe) <- "relimplmbooteval" This changes the name of the class of ausgabe, wi

Re: [Rd] [R] can't load just saved R object "ReadItem: unknown type 65"

2007-03-23 Thread Luke Tierney
According to the logs nothing at all has changed in the serialization code in a month and nothing of consequence for much longer than that. To track this down we will need a complete, reproducible, and preferably minimal example. Best, luke On Thu, 22 Mar 2007, Mark W Kimpel wrote: > I have run

[Rd] Bug in str or issue with class management in my package?

2007-03-23 Thread Ulrike Grömping
Dear developeRs, with R 2.4.1 (and also 2.4.0), the function str() fails on objects of class relimplmbooteval, if there are unused slots, which is very often the case. I am not sure whether this is a bug in str() or a correct behavior of str() that unmasks some sloppiness in my usage of S4 classe