[R] conflict within packages
Duncan Murdoch
murdoch at stats.uwo.ca
Tue Feb 12 22:49:21 CET 2008
On 12/02/2008 4:33 PM, Elizabeth Purdom wrote:
> Hi,
> My problem is more that the packages use the function internally, so
> they get the wrong function. Should that not be happening?
The package authors should use a NAMESPACE file to avoid exactly this
problem. You could contact the maintainers and suggest it.
Duncan Murdoch
> Best,
> Elizabeth
>
> jim holtman wrote:
>> you can use:
>>
>> package::getNames()
>>
>> to reference the one that you want.
>>
>> On Feb 12, 2008 3:45 PM, Elizabeth Purdom <epurdom at gmail.com
>> <mailto:epurdom at gmail.com>> wrote:
>>
>> Hi,
>> I am trying to use two contributed packages, both of which have a
>> function 'getNames'. So if I load them both they obviously conflict.
>> Currently I manually detach one package and then reload the other
>> to be
>> able to use one function right after another. Is there anything else I
>> can do?
>> Best,
>> Elizabeth
>>
>> ______________________________________________
>> R-help at r-project.org <mailto:R-help at r-project.org> mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> <http://www.r-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>>
>>
>> --
>> Jim Holtman
>> Cincinnati, OH
>> +1 513 646 9390
>>
>> What is the problem you are trying to solve?
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list