We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider this ggplot
library(ggplot2) ggplot(Orange, aes(age, circumference)) + geom_point() + geom_line(aes(color = Tree))
This has 2 calls to aes(), so on first glance, it seems I want to check this with
aes()
ex() %>% check_function("ggplot") %>% { check_arg(., "data") %>% check_equal() check_arg(., "mapping") %>% check_function("aes") %>% { check_arg(., "x") %>% check_equal(eval = FALSE) check_arg(., "y") %>% check_equal(eval = FALSE) } } ex() %>% check_function("geom_point") %>% { check_arg(., "mapping") %>% check_function("aes", index = 2) %>% { check_arg(., "color") %>% check_equal(eval = FALSE) } }
But the each call to aes() is nested inside another check_function(), and I think this is restricting the scope. So I think the SCTs I really need are
check_function()
ex() %>% check_function("ggplot") %>% { check_arg(., "data") %>% check_equal() check_arg(., "mapping") %>% check_function("aes") %>% { check_arg(., "x") %>% check_equal(eval = FALSE) check_arg(., "y") %>% check_equal(eval = FALSE) } } ex() %>% check_function("geom_point") %>% { check_arg(., "mapping") %>% check_function("aes") %>% { # <- this line different check_arg(., "color") %>% check_equal(eval = FALSE) } }
It's worth having an example of how the index is calculated: on the whole code or on a subset of the code provided by the state.
index
The text was updated successfully, but these errors were encountered:
The first SCT was the way it worked before we fixed #206. The second SCT is how it was intended and how it should work, after deploying that fix.
I will add an example.
Sorry, something went wrong.
No branches or pull requests
Consider this ggplot
This has 2 calls to
aes()
, so on first glance, it seems I want to check this withBut the each call to
aes()
is nested inside anothercheck_function()
, and I think this is restricting the scope. So I think the SCTs I really need areIt's worth having an example of how the
index
is calculated: on the whole code or on a subset of the code provided by the state.The text was updated successfully, but these errors were encountered: