Relation of 'Depends' and 'Imports' from R/CRAN to 'Depends' in 'debian/control'
Hi All,
I would like to work on packages from R/CRAN and Bioconductor. I'm
using as a guide r-cran-rocr and r-bioc-limma. I was wondering if
there is a easy translation from 'Depends' and 'Imports' in the CRAN
packages to the 'Depends' fields in 'debian/control'.
Initially I though CRAN's 'Depends' meant, the package is needed for
building and CRAN's 'Imports' meant, the package is needed when using.
Which would translate to a 'Depends' entry on 'Source' and 'Package'
respectively. This seems incorrect as for example when building
reshape2[1], it only has 'Imports' dependencies, it fails with this
error:
dh_installdirs usr/lib/R/site-library
if test -f /usr/bin/xvfb-run; then \
xvfb-run -a \
R CMD INSTALL -l
/tmp/buildd/r-cran-reshape2-1.2.1/debian/r-cran-reshape2/usr/lib/R/site-library
--clean \
. ; \
else \
R CMD INSTALL -l
/tmp/buildd/r-cran-reshape2-1.2.1/debian/r-cran-reshape2/usr/lib/R/site-library
\
--clean . ;\
fi
ERROR: dependencies 'plyr', 'stringr', 'lattice' are not available for
package 'reshape2'
So my question is, should I list in 'Source' and 'Package' all the
dependencies listed in CRAN's 'Depends' and 'Imports'?
[1]http://cran.r-project.org/web/packages/reshape2/
Thanks,
Carlos
Reply to: