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
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 ---------- Forwarded message ---------- From: Omar Lakkis <uofiowa at gmail.com> Date: Oct 27, 2005 11:47 AM Subject: its dates masked by chron To: r-help at 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
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. It seems that both its and chron use namespaces. I thought the intent of namespaces was to prevent problems like this. 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 at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Uwe Ligges > Sent: Thursday, October 27, 2005 4:07 PM > To: Peter Dalgaard > Cc: r-help at stat.math.ethz.ch > Subject: Re: [R] its dates masked by chron > > Peter Dalgaard wrote: > > > Omar Lakkis <uofiowa at 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 at gmail.com> > >>Date: Oct 27, 2005 11:47 AM > >>Subject: its dates masked by chron > >>To: r-help at 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 at 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 at 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 >
On 27 October 2005 at 11:47, Omar Lakkis wrote: | I built R 2.2.0 from source on my debian machine yesterday and updated FYI, Debian had 2.2.0 package for you to download for over a week. | 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 I can't replicate that. Using the Debian packages for R, Hmisc and its: edd at basebud:~> dpkg -l r-base-core r-cran-hmisc r-cran-its | grep "^ii" | cut -c-78 ii r-base-core 2.2.0.final-2 GNU R core of statistical computing language ii r-cran-hmisc 3.0.7-1 GNU R miscellaneous functions by Frank Harre ii r-cran-its 1.0.9-1 GNU R package for handling irregular time se I get the following (using --quiet to truncate the output): edd at basebud:~> R --quiet> 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>Hth, Dirk -- Statistics: The (futile) attempt to offer certainty about uncertainty. -- Roger Koenker, 'Dictionary of Received Ideas of Statistics'