-
Notifications
You must be signed in to change notification settings - Fork 2.1k
rlang warnings in ggplot2 unit tests #3552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I see this too when I run the tests locally, and also can't reproduce outside of running the tests. |
This seems because
|
Have anyone successfully identified where the calls occur? I can only provoke these during testing, not by replaying the tests in the console, and searching for |
It says library(ggplot2)
library(testthat)
trace("[[.quosure", quote(lobstr::cst()), where = asNamespace("rlang"))
#> Tracing function "[[.quosure" in package "namespace:rlang"
#> [1] "[[.quosure"
p <- ggplot(mtcars) + aes(wt, mpg)
#> Tracing `[[.quosure`(expr, 1) on entry
#> x
#> 1. \-ggplot2:::`+.gg`(ggplot(mtcars), aes(wt, mpg))
#> 2. \-ggplot2:::add_ggplot(e1, e2, e2name) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:51:2
#> 3. +-ggplot2::ggplot_add(object, p, objectname) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:69:2
#> 4. \-ggplot2:::ggplot_add.uneval(object, p, objectname) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:87:2
#> 5. \-ggplot2:::make_labels(object) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:126:2
#> 6. \-base::Map(default_label, names(mapping), mapping) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:104:2
#> 7. \-base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
#> 8. \-(function (aesthetic, mapping) ...
#> 9. \-ggplot2:::strip_dots(mapping) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:95:4
#> 10. +-expr[[1]] C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:70:4
#> 11. \-rlang:::`[[.quosure`(expr, 1) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:70:4
#> 12. +-base::.doTrace(lobstr::cst(), "on entry")
#> 13. | \-base::eval.parent(exprObj)
#> 14. | \-base::eval(expr, p)
#> 15. | \-base::eval(expr, p)
#> 16. \-lobstr::cst()
#> Tracing `[[.quosure`(expr, 1) on entry
#> x
#> 1. \-ggplot2:::`+.gg`(ggplot(mtcars), aes(wt, mpg))
#> 2. \-ggplot2:::add_ggplot(e1, e2, e2name) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:51:2
#> 3. +-ggplot2::ggplot_add(object, p, objectname) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:69:2
#> 4. \-ggplot2:::ggplot_add.uneval(object, p, objectname) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:87:2
#> 5. \-ggplot2:::make_labels(object) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/plot-construction.r:126:2
#> 6. \-base::Map(default_label, names(mapping), mapping) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:104:2
#> 7. \-base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
#> 8. \-(function (aesthetic, mapping) ...
#> 9. \-ggplot2:::strip_dots(mapping) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:95:4
#> 10. +-expr[[1]] C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:70:4
#> 11. \-rlang:::`[[.quosure`(expr, 1) C:/Users/hiroaki-yutani/Documents/repo/R/ggplot2/R/aes-calculated.r:70:4
#> 12. +-base::.doTrace(lobstr::cst(), "on entry")
#> 13. | \-base::eval.parent(exprObj)
#> 14. | \-base::eval(expr, p)
#> 15. | \-base::eval(expr, p)
#> 16. \-lobstr::cst()
expect_identical(class(p$mapping), "uneval") Created on 2019-10-07 by the reprex package (v0.3.0) |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
When I run the ggplot2 unit tests, I get two rlang warnings. Does anybody else see this? Is this a misconfiguration on my end or is something not quite right with the test or the code base?
Strangely, I cannot reproduce these warnings in a reprex:
Created on 2019-10-05 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: