Skip to content
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

Should quosures have a str method? #371

Closed
hadley opened this issue Jan 18, 2018 · 2 comments
Closed

Should quosures have a str method? #371

hadley opened this issue Jan 18, 2018 · 2 comments
Labels
print tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day tidyeval

Comments

@hadley
Copy link
Member

hadley commented Jan 18, 2018

Currently:

> str(quo(x))
 language ~x
 - attr(*, ".Environment")=<environment: R_GlobalEnv> 
@lionel- lionel- added the print label Jan 26, 2018
@lionel- lionel- added tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day tidyeval labels Mar 29, 2021
@kevinushey
Copy link
Contributor

Looks like there is already a str() method:

rlang/R/quo.R

Lines 514 to 517 in 84deb87

#' @export
str.quosure <- function(object, ...) {
str(unclass(object), ...)
}

Do we have a proposal for an alternate presentation? The default R approach seems okay in this scenario.

@lionel-
Copy link
Member

lionel- commented Aug 15, 2024

I think you're right, the current behaviour is probably fine. Thanks for taking a look!

@lionel- lionel- closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
print tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day tidyeval
Projects
None yet
Development

No branches or pull requests

3 participants