Ever Tried
Ever Tried

Reputation: 21

How can I include all package dependencies in an R package?

I searched all over the place, but couldn't find an answer. I am creating my own R functions, but these have CRAN package dependencies. Is there a way to package all the dependent CRAN R package binaries into my R package?

I need to do this because our centralized machine that runs these R scripts don't have internet access. We simply deploy it to run our scripts.

Upvotes: 2

Views: 305

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368519

No, the idea is to have repository containing the other packages which your package depends upon.

The CRAN packages miniCRAN and drat help with, respectfully, finding that set of packages and hosting / accessing it.

Upvotes: 1

Related Questions