Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can two R packages be on each others depends list?

Tags:

r

workflow

Let's say I have 3 packages A, B, and C.

B connects to data repository 1 and has functions specific to that API.

C connects to data repository 2 and has functions specific to that API.

Eventually there will be several more child packages.

Package A will have generic methods and other common functions (e.g. authentication) that apply to data acquired through B and C. The rationale here is that this would be a more streamlined way to keep up with development (e.g. one would have to update a single auth function rather than doing that inside each child package). So it makes sense for A to be on the depends list for B and C

But I would also like users to just install A and have access to all child packages. For this, I want B and C to be on its depends list.

Is this possible? Should I have a better workflow?

like image 492
Maiasaura Avatar asked Feb 05 '12 22:02

Maiasaura


1 Answers

The gregmisc package is one example like this that installs more focused sub-packages through depends. It doesn't have any functionality, itself, but it certainly could.

http://cran.r-project.org/web/packages/gregmisc

like image 56
John Colby Avatar answered Oct 11 '22 18:10

John Colby