I created a R package called myPackage
. In that package I've used other packages, such as, RJSONIO
, stringr
, RSQLite
and Rcpp
. I want to install all of those packages when I am installing myPackage
, if it is not installed before.
Is this possible?
You can specify a list of packages in the
DEPENDS
section of your DESCRIPTION file. From the linked documentation fileThere are other related sections, such as
IMPORTS
andSUGGESTS
- see the docs for details.Have a look at some of the R-packages on r-forge to get an idea.