I have a revision of a package in which I have added some plotting code that uses the ggplot2 package as well as a custom scale from the package scales. In particular, the new code has one line that references the scales package, of the form:
trans = scales::trans_new("new scale", ...)
I sent the package to Winbuilder to check it and I get this error:
Error in loadNamespace(name) : there is no package called 'scales'
... and indeed I get the same error if I run R CMD check --as-cran
Yes, scales is installed on my system.
Yes, scales is included in
Suggests
in myDESCRIPTION
file; I have double- and triple-checked this.Yes, scales appears to be a package still available on CRAN, with lots and lots of reverse dependencies.
I also have dozens of calls to ggplot2::xxxx
routines in my code, and ggplot2 is also in Suggests
. No errors there.
What could I be doing wrong?