[R] Specifying package dependencies

Christopher Bare cbare at systemsbiology.org
Fri Jul 24 23:40:34 CEST 2009


Hi,

I'm trying to put together an R package. My library has dependencies
on three other libraries: RSQLite, gaggle (a component of
Bioconductor), and another package that is available as a download
from the author's website.

Is it possible to specify each of those dependencies in such a way
that they will be automatically installed when a user installs my
library? I'd like to save the end user from a lengthy series of
install steps, if possible.

I've looked in the Writing R Extensions document, but am probably
failing to understand most of it.

If I put a bioconductor package in the Depends line of the DESCRIPTION
file, should I expect that to just work? It seems like it doesn't.

For the case where I need to download a .tgz file from the author's
page, is there a way to fetch and install that when my library is
being installed? Maybe in a configure script?

Is this a practical thing to try and do? Thanks for any advise!

-Chris




More information about the R-help mailing list