You should not set too much dependencies but prefer to use those packages as import :
for instance in the DESCRIPTION you will write
Imports:
graphics,
utils,
stats,
grDevices
In your NAMESPACE you can then use either importFrom, in the case you only have a few functions to use. Then you don't have to point to the function using pkg::fun(), or import pkg which will import the whole package, and again you will not need to use the pkg::fun().
Below an example of what you can write in your NAMESPACE
import(graphics)
importFrom(stats,coef)
importFrom(stats,ftable)
importFrom(stats,na.fail)
importFrom(utils,data)
importFrom(utils,globalVariables)
importFrom(utils,read.csv)
importFrom(utils,select.list)
importFrom(utils,stack)
importFrom(utils,write.table)
If you try to use those functions without importing them or use depends, the R-CMD check will fail.
R CMD check --as-cran
. This is not super explicit but where WRE says "all packages" need to pass that, they also mean default packages other than base. – Unrootdevtools::build_win()
. Might it have something to do with me specifyingR
inDepends
? – BurraDepends
(which you probably never want to do... useImports
and NAMESPACE instead), you won't get warnings about this. And you don't needDepends: R
unless you specify a specific version. – Unroot::
to import all functions. I specified a version for R in depends. I don't see why running R-devel locally would be better than running it on the CRAN servers? – Burra