-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix a typo in NEWS.md #2661
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
fix a typo in NEWS.md #2661
Conversation
The typo fix looks good to me. However, (probably more a comment to @hadley), I don't understand the following phrase: Even after reading the documentation for |
Yeah, I too felt the phase mysterious, but I found what a "short" label is in # quo_name() is helpful when you need really short labels:
quo_name(quo(sym))
#> [1] "sym"
quo_name(quo(!! sym))
#> [1] "function (x) ..." I'm still not sure about the actual use cases, but maybe this is useful when you create a label by deparsing an aes that is not a simple symbol and contains unquoted functions in its expression? |
I think talking about "short" symbols is misleading: quo_name(quo(this_is_a_really_long_symbol_and_quo_name_has_no_problem_with_it))
#> [1] "this_is_a_really_long_symbol_and_quo_name_has_no_problem_with_it"
quo_text(quo(this_is_a_really_long_symbol_and_quo_name_has_no_problem_with_it))
#> [1] "this_is_a_really_long_symbol_and_quo_name_has_no_problem_with_it"
quo_name(quo(a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p))
#> [1] "a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p"
quo_name(quo(a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q))
#> [1] "+..."
quo_text(quo(a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q))
#> [1] "a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + \n q" |
Yeah, it's long expressions that are shortened, not long symbols. We need to document this better in rlang; I think it's ok if it's slightly bewildering in the NEWS file — at least it gets people looking in the right direction (although better wording is, of course, appreciated) |
How about:
|
👍 |
@clauswilke Thanks for the nice sentence! Should I include this? If you will create another PR, I'll close this here. |
Yes, just include it in your PR. Thanks! |
Sure! |
Done. |
Thanks! |
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/ |
No description provided.