From maechler at stat.math.ethz.ch  Mon Nov  3 20:36:56 2003
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Mon Nov  3 20:36:08 2003
Subject: [Rd] POSIXct under R-1.8.0 with Methods package
In-Reply-To: <3FA6A13D.9050406@statistik.uni-dortmund.de>
References: <8CBAA121CEB4D5118CB200508BB2BBEF0317EA22@xmx8lonib.lonib.commerzbank.com>
	<3FA6A13D.9050406@statistik.uni-dortmund.de>
Message-ID: <16294.44632.93101.160003@gargle.gargle.HOWL>

>>>>> "UweL" == Uwe Ligges <ligges@statistik.uni-dortmund.de>
>>>>>     on Mon, 03 Nov 2003 19:41:01 +0100 writes:

    UweL> Marsland, John wrote:
    >> I am having problems porting a package to R-1.8.0 where I
    >> have complex S4 classes with slots inheriting from
    >> POSIXct. For example:
    >> 
    >> 
    >>> setClass("test1", representation(date="POSIXct"))
    >>  [1] "test1"
    >> 
    >>> new("test1", date=as.POSIXct("2003-10-09"))
    >>  Error in ext@test(object) : couldn't find function "%in
    >> %"
    >> 
    >> Under R-1.7.1 this worked fine and generated the
    >> following:
    >> 
    >>> new("test1", date=as.POSIXct("2003-10-09"))
    >>  An object of class "test1" Slot "date": [1] "2003-10-09
    >> GMT Standard Time"
    >> 
    >> Any thoughts would be greatly appreciated ...


    UweL> It's a typo in methods:::.setOldIs() 
    UweL> "%in %" --> "%in%"

exactly.

    UweL> (might be fixed in a recent r-patched - I have no
    UweL> available here right now)

yes, fixed (not by me) in a very recent R-patched as of about an
hour ago...


[Rd] POSIXct under R-1.8.0 with Methods package
Martin Maechler