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

Error in R Script when using quasi-quotation (!!, !!!) #9449

Closed
lilyclements opened this issue Feb 17, 2025 · 2 comments · Fixed by #9454
Closed

Error in R Script when using quasi-quotation (!!, !!!) #9449

lilyclements opened this issue Feb 17, 2025 · 2 comments · Fixed by #9454

Comments

@lilyclements
Copy link
Contributor

@lloyddewit The R script is very impressive, and has been pretty hard to break in R-Instat, but, we've come across one at long last! It is with the quasi-quotation system of !! and !!!.

These symbols (!! and !!!) are used in tidy evaluation in R, which helps manipulate and pass variables inside functions. They're just ways to unpack variables in different ways, and used in functions, or just in standard R code too.

For example, with using recoding:

x <- factor(c("apple", "bear", "banana", "dear"))
levels <- c(fruit = "apple", fruit = "banana")

x
forcats::fct_recode(x, !!!levels)
Image

It's not urgent, but, just to bring to your attention on the script side of things. The script has been working really nicely, and there's alternative ways to code in the meantime.

@lloyddewit
Copy link
Contributor

@lilyclements Hi Lily, nice to hear from you.
I will investigate this and get back to you.

@lloyddewit
Copy link
Contributor

@lilyclements
I already added support for !! in PR #8746.
Please could you test and verify that only support for !!! still needs to be added?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants