Skip to content

Curly braces added by covr can lead to problems with rlang's curly curly interpolation #377

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

Closed
asardaes opened this issue Jun 29, 2019 · 0 comments

Comments

@asardaes
Copy link

I was essentially doing something like the following:

e <- rlang::expr(x + 1)
rlang::expr(lapply(X, function(x) { !!e }))
# lapply(X, function(x) {
#    x + 1
# })

However, when running covr, the function inside lapply gets an extra set of curly braces, so expr ends up seeing:

rlang::expr(lapply(X, function(x) {{ !!e }}))
# Error: `arg` must be a symbol

Causing an error because rlang 0.4.0 now treats {{ as an interpolation marker.

asardaes added a commit to asardaes/table.express that referenced this issue Jun 29, 2019
jasonserviss added a commit to EngeLab/CIMseq that referenced this issue Jul 1, 2019
heavywatal added a commit to heavywatal/rtumopp that referenced this issue Jul 10, 2019
jasonserviss added a commit to EngeLab/CIMseq that referenced this issue Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant