r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
491 stars 131 forks source link

`expr_depase()` incorrectly deparses a non-syntactic name #1642

Open hadley opened 11 months ago

hadley commented 11 months ago
x <- quote(c("`a`" = 1))
rlang::expr_deparse(x)
#> [1] "c(``a`` = 1)"
deparse1(x)
#> [1] "c(`\\`a\\`` = 1)"

Created on 2023-07-26 with reprex v2.0.2