You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since version 1.0.0 (I think) renv appears to have a problem with the use of {{}} in glue::glue() expressions where there is a variable to be evaluated inside the escaped braces. (A use case for these is when dynamically building {cli} formatted messages).
Reprex (using {renv} 1.0.7)
writeLines("Imports:\n\tglue\n\tcli", con="DESCRIPTION")
# This will cause issues
writeLines("foo <- 'world'\nbar <- glue::glue('Hello {{{foo}}}')", con="foo.R")
# This will cause issues - this is the "real" use case with a cli class
writeLines("foo <- 'world'\nbar <- glue::glue('Hello {{.strong {foo}}}')", con="bar.R")
# This will not cause issues
writeLines("foo <- 'world'\nbar <- glue::glue('Hello {foo}')", con="baz.R")
# This will not cause issues
writeLines("foo <- 'world'\nbar <- glue::glue('Hello {{world}}')", con="ham.R")
renv::install()
WARNING: One or more problems were discovered while enumerating dependencies.
# /home/pbbgss/projects/foo/bar.R --------------------------------------------
Error: <text>:1:4: unexpected '}'
1: foo}
^
# /home/pbbgss/projects/foo/foo.R --------------------------------------------
Error: <text>:1:4: unexpected '}'
1: foo}
^
Please see `?renv::dependencies` for more information.
The warning isn't triggered on {renv} 0.15.4 but I haven't tested everything in between
The text was updated successfully, but these errors were encountered:
Hello there!
Since version 1.0.0 (I think)
renv
appears to have a problem with the use of{{}}
inglue::glue()
expressions where there is a variable to be evaluated inside the escaped braces. (A use case for these is when dynamically building {cli} formatted messages).Reprex (using {renv} 1.0.7)
The warning isn't triggered on {renv} 0.15.4 but I haven't tested everything in between
The text was updated successfully, but these errors were encountered: