So I am working on compiling a package using the latest Rtools within RStudio.
I am getting this warning and suggestion:
Consider adding
importFrom("stats", "IQR", "median", "na.omit", "quantile", "sd",
"shapiro.test", "var")
importFrom("utils", "read.csv", "write.table")
to your NAMESPACE file.
I would like to add such functions as na.omit
as they suggest in the NAMESPACE file.
However, that entire file gets auto-generated by roxygen2. So how can I add them.
Can I add the importFrom syntax in the DESCRIPTION file?
Adding it to each function maybe a solution, but doesn't seem to be optimal.
Why roxygen2 doesn't have the file split into a MANUAL and auto-generated section is beyond me.
How to manually add importFrom to NAMESPACE when roxygen2 auto-generates the file?