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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With