Re: [Rd] name conflicts

From: Duncan Murdoch <>
Date: Mon, 25 Aug 2008 15:28:00 -0400

On 8/25/2008 3:05 PM, Max Kuhn wrote:
> Everyone,
> I've got code in my package that uses LogitBoost from the caTools
> package. caTools does not have a namespace.
> My package also uses loads RWeka, which has a namespace, and also has
> a function called LogitBoost.
> After loading both packages, how can I be specific about running the
> version from caTools (since caTools:::LogitBoost won't work)?

It's not easy. Best would be to convince caTools to add a NAMESPACE.

But as a workaround:

caToolsEnv <- as.environment("package:caTools") LogitBoost <- caToolsEnv$LogitBoost

Note that there is no guarantee that LogitBoost will actually work. Because caTools doesn't have a NAMESPACE, there is a risk of other name clashes causing LogitBoost to behave unpredictably.

Duncan Murdoch mailing list Received on Mon 25 Aug 2008 - 19:31:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Aug 2008 - 19:37:40 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive