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

constructor for quo #33

Closed
moodymudskipper opened this issue Sep 1, 2022 · 1 comment · Fixed by #81
Closed

constructor for quo #33

moodymudskipper opened this issue Sep 1, 2022 · 1 comment · Fixed by #81
Milestone

Comments

@moodymudskipper
Copy link
Collaborator

It's a common enough object type.

They already "work" but not idiomatically :

constructive::construct(rlang::quo(a))
#> match.fun("environment<-")(~a, .GlobalEnv) |>
#>   structure(class = c("quosure", "formula"))
@moodymudskipper moodymudskipper modified the milestones: 0.0.2, 0.2 Oct 2, 2022
@moodymudskipper
Copy link
Collaborator Author

I think we probably want something like this :

e <- new.env()

local(rlang::quo(a), e)
#> <quosure>
#> expr: ^a
#> env:  0x1212c4198

evalq(rlang::quo(a), e)
#> <quosure>
#> expr: ^a
#> env:  0x1212c4198

Created on 2022-10-14 with reprex v2.0.2

@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant