You have two solutions:
-
Rewrite your code to avoid non-standard evaluation. For ggplot2, this means using
aes_string()
instead ofaes()
(as described by Harlan) -
Add a call to
globalVariables(c("x.values", "y.values"))
somewhere in the top-level of your package.
You should strive for 0 NOTES in your package when submitting to CRAN, even if you have to do something slightly hacky. This makes life easier for CRAN, and easier for you.
(Updated 2014-12-31 to reflect my latest thoughts on this)