weyla...@gmail.com]
Sent: Thursday, August 02, 2012 10:46 AM
To: Xuan Zhao
Cc: r-help@r-project.org
Subject: Re: [R] How to link two R packages together
On Thu, Aug 2, 2012 at 9:02 AM, Xuan Zhao wrote:
> Hi All,
> Thank you so much for all the help you have provided, I really appreciate it!
&
ey.ps...@gmail.com]
Sent: Thursday, August 02, 2012 10:40 AM
To: Xuan Zhao
Cc: r-help@r-project.org
Subject: Re: [R] How to link two R packages together
Hi Xuan,
I would expect ~/R/ to be the R_HOME directory, though perhaps I am wrong.
Also, you only need a depends or an imports, not both. At a simpl
not the host of the server,
does that matter?
Thank you so much for the help!
Yours,
Xuan
-Original Message-
From: Bert Gunter [mailto:gunter.ber...@gene.com]
Sent: Thursday, August 02, 2012 9:42 AM
To: Joshua Wiley
Cc: Michael Weylandt; r-help@r-project.org; Xuan Zhao
Subject: Re: [R
t; home directory or what? Should that be the host? I am not the host of the
>> server, does that matter?
>> Thank you so much for the help!
>> Yours,
>> Xuan
>>
>> -Original Message-
>> From: Bert Gunter [mailto:gunter.ber...@gene.com]
>> Sent:
On Thu, Aug 2, 2012 at 9:02 AM, Xuan Zhao wrote:
> Hi All,
> Thank you so much for all the help you have provided, I really appreciate it!
> The problem is solved, I just added PKG2 to the dependency of PKG1 in the
> description file, also (I don't know if it's necessary or not), I added
> "impo
s that my
> home directory or what? Should that be the host? I am not the host of the
> server, does that matter?
> Thank you so much for the help!
> Yours,
> Xuan
>
> -Original Message-
> From: Bert Gunter [mailto:gunter.ber...@gene.com]
> Sent: Thursday, August 0
or what? Should that be the host? I am not the host of the
> server, does that matter?
> Thank you so much for the help!
> Yours,
> Xuan
>
> -Original Message-
> From: Bert Gunter [mailto:gunter.ber...@gene.com]
> Sent: Thursday, August 02, 2012 9:42 AM
> To: Joshua
Hi Bert,
Likewise, you may well be right. In fact, if I were going to assign
probabilities of being correct given the original post, I would give
you about .7 and me about .3. I commented for completeness of
discussion. I definitely see your point, and thank you for a
thoughtful reply to my pos
Josh:
You may be right ... but I still do not think so. Note that the post
begins with:
One of them (PKG1) needs to use the functions
> of the other package (PKG2).
This is exactly what imports are for. I believe that, because he/she
failed to RTFM, he/she is not being accurate in his/her use of
On Wed, Aug 1, 2012 at 10:28 PM, Bert Gunter wrote:
> On Wed, Aug 1, 2012 at 6:45 PM, Michael Weylandt
> 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
On Wed, Aug 1, 2012 at 6:45 PM, Michael Weylandt
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
>
> S
; From: Michael Weylandt [mailto:michael.weyla...@gmail.com]
> Sent: Wednesday, August 01, 2012 9:45 PM
> To: Xuan Zhao
> Cc: r-help@r-project.org
> Subject: Re: [R] How to link two R packages together
>
> Isn't this what package dependencies are for?
>
> See the desc
Isn't this what package dependencies are for?
See the description of the DESCRIPTION file in Writing R Extensions
Michael
On Aug 1, 2012, at 5:27 PM, xuan zhao 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
Yuo can use source function.
Looking for ?source for an example.
Best,
Roberto
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-link-two-R-packages-together-tp4638765p4638766.html
Sent from the R help mailing list archive at Nabble.com.
__
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.
An
15 matches
Mail list logo