Re: [R] its dates masked by chron

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Fri 28 Oct 2005 - 16:38:05 EST

Whit Armstrong wrote:

> Uwe,
> 
> It was unclear whether you were referring to chron or its as being
> unmaintained.
> 
> I still maintain its, and I'm actually releasing a new version tonight
> since Kurt has pointed out that the current version is failing package
> checking.

Whit,

that's great!

I was waiting for an its update for quite some time now, you have never reacted to my automatically generated request to fix your package with R-2.2.0 release nor have you worked on the problem that causes a Warning in all current checks for R >= 2.2.0, hence I thought the package is rather unmaintained.

> It seems that both its and chron use namespaces. I thought the intent > of namespaces was to prevent problems like this.

I have to apologize (see Brian Ripley's reply), because I haven't tested myself that library(its) in fact does not cause chron to be loaded. Hence Namespace stuff should be sufficient. I was just wondering why someone would use the same name for a function that is masked by a package that automatically is attached some microseconds after library(its) is called.

Best,
Uwe

> If there are namespace experts out there who can suggest a fix to this
> problem, I'm happy to put it into the next release.
> 
> -Whit
>  
> 
> 

>>-----Original Message-----
>>From: r-help-bounces@stat.math.ethz.ch
>>[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Uwe Ligges
>>Sent: Thursday, October 27, 2005 4:07 PM
>>To: Peter Dalgaard
>>Cc: r-help@stat.math.ethz.ch
>>Subject: Re: [R] its dates masked by chron
>>
>>Peter Dalgaard wrote:
>>
>>
>>>Omar Lakkis <uofiowa@gmail.com> writes:
>>>
>>>
>>>
>>>>To redescribe the problem; I need to use dates from its its
>>
>>depends on
>>
>>>>Hmisc Hmisc depends chron dates in chron masks dates in its
>>>
>>>
>>>So use its::dates ...
>>
>>... or ask the package maintainer (which might be a hard task: the
>>package currently appears to be more or less unmaintained) to
>>fix this
>>probably unintended behaviour.
>>
>>Uwe Ligges
>>
>>
>>
>>
>>>>---------- Forwarded message ----------
>>>>From: Omar Lakkis <uofiowa@gmail.com>
>>>>Date: Oct 27, 2005 11:47 AM
>>>>Subject: its dates masked by chron
>>>>To: r-help@stat.math.ethz.ch
>>>>
>>>>
>>>>I built R 2.2.0 from source on my debian machine yesterday
>>
>>and updated
>>
>>>>all packages. My problem is that "dates" function from its, that my
>>>>code heavely uses is now masked by "dates" from chron.
>>>>How can I specify tehat I want to use dates from its or how can I
>>>>prevent it from being masked?
>>>>
>>>>
>>>>
>>>>>library(its)
>>>>
>>>>Loading required package: Hmisc
>>>>Hmisc library by Frank E Harrell Jr
>>>>
>>>>Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview')
>>>>to see overall documentation.
>>>>
>>>>NOTE:Hmisc no longer redefines [.factor to drop unused levels when
>>>>subsetting. To get the old behavior of Hmisc type
>>
>>dropUnusedLevels().
>>
>>>>Attaching package: 'Hmisc'
>>>>
>>>>
>>>> The following object(s) are masked from package:stats :
>>>>
>>>> ecdf
>>>>
>>>>
>>>>Attaching package: 'chron'
>>>>
>>>>
>>>> The following object(s) are masked from package:its :
>>>>
>>>> dates
>>>>
>>>>______________________________________________
>>>>R-help@stat.math.ethz.ch mailing list
>>>>https://stat.ethz.ch/mailman/listinfo/r-help
>>>>PLEASE do read the posting guide!
>>
>>http://www.R-project.org/posting-guide.html
>>
>>>
>>______________________________________________
>>R-help@stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide!
>>http://www.R-project.org/posting-guide.html
>
>

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Oct 28 16:46:13 2005

This archive was generated by hypermail 2.1.8 : Fri 28 Oct 2005 - 18:12:52 EST