Re: [R] How to link two R packages together

2012-08-02 Thread Xuan Zhao
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! &

Re: [R] How to link two R packages together

2012-08-02 Thread Xuan Zhao
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

Re: [R] How to link two R packages together

2012-08-02 Thread Xuan Zhao
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

Re: [R] How to link two R packages together

2012-08-02 Thread Bert Gunter
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:

Re: [R] How to link two R packages together

2012-08-02 Thread R. Michael Weylandt
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

Re: [R] How to link two R packages together

2012-08-02 Thread Bert Gunter
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

Re: [R] How to link two R packages together

2012-08-02 Thread Joshua Wiley
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

Re: [R] How to link two R packages together

2012-08-02 Thread Joshua Wiley
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

Re: [R] How to link two R packages together

2012-08-02 Thread Bert Gunter
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

Re: [R] How to link two R packages together

2012-08-01 Thread Joshua Wiley
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

Re: [R] How to link two R packages together

2012-08-01 Thread Bert Gunter
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

Re: [R] How to link two R packages together

2012-08-01 Thread Michael Weylandt
; 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

Re: [R] How to link two R packages together

2012-08-01 Thread Michael Weylandt
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

Re: [R] How to link two R packages together

2012-08-01 Thread Roberto
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. __

[R] How to link two R packages together

2012-08-01 Thread xuan zhao
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