[R] How to link two R packages together

Bert Gunter gunter.berton at gene.com
Thu Aug 2 07:28:35 CEST 2012


On Wed, Aug 1, 2012 at 6:45 PM, Michael Weylandt
<michael.weylandt at gmail.com> wrote:
> Isn't this what package dependencies are for?

No. It's what package imports are for (preferably).
As always, the OP should RTFM -- in this case the one to which you
refer on the next line, especially the NAMESPACES section.

-- Bert

>
> See the description of the DESCRIPTION file in Writing R Extensions
>
> Michael
>
> On Aug 1, 2012, at 5:27 PM, xuan zhao <xuan.zhao at sentrana.com> wrote:
>
>> Hi,
>> I have built two R packages. One of them (PKG1) needs to use the functions
>> of the other package (PKG2).
>> So I need to link these two packages together, so that the functions of PKG2
>> can be available to PKG1. And when I load one package using
>> 'library("PKG1")', PKG2 can be loaded at the same.
>> Any ideas welcome.
>>
>>
>>
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/How-to-link-two-R-packages-together-tp4638765.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list