I am developing an R package but I would like to break it down into two packages, say A and B, where B depends on A.
In the course of development I have created a number of internal utility functions, say .util1(), .util2(), etc. They are useful to keep my code tidy and avoid repetitions, but I don't want to export them and make them available to other users.
Rather than having one copy of these functions in both A and B, my idea was to put all of them in package A, and then access them from A using B:::.util1(), ... etc. On the other hand that doesn't look very neat, and I will have to document all these "hidden" dependencies somewhere (given that I will not explicitly export them from A). Are there other alternatives? Thanks!