Skip to content

Creating a package bundle.

3 messages · Steve Su, Uwe Ligges, Seth Falcon

#
Steve Su wrote:

            
Perhaps you simply want to use

   install.packages("the_package", dependencies = TRUE)

rather than building a package bundle of packages you are not 
maintaining yourself.


Uwe Ligges
#
Hi Steve,

Are you sure you want a bundle?  If you are writing your own package
Foo that depends on two pacakges already available via CRAN, then all
you need to do is list those two pacakges in the Depends field of your
package's DESCRIPTION file.

This will give you the automatic downloading of Foo's dependencies
when a user does: install.packages("foo", dependencies=TRUE)

As for the versions, you can specify required versions also in the
Depends field (see the writing R extensions guide).

+ seth