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
dir.create('test/R', recursive=TRUE)
writeLines(
r'[f = function (x) UseMethod('f')`f.(` = function (x) x`f.{` = function (x) x]',
'test/R/test.r'
)
desc=list(
Package='Test',
Version='0.0.1',
License='MIT = file',
Description='For testing.',
Title='For Testing',
`Authors@R`='person("F", "L", role = c("cre", "aut"))'
)
write.dcf(desc, 'test/DESCRIPTION')
roxygen2::roxygenize('test')
This leads to:
First time using roxygen2. Upgrading automatically...
Setting `RoxygenNote` to "7.3.0"
✖ roxygen2 requires "Encoding: UTF-8"
ℹ Current encoding is NA
ℹ Loading Test
Error in `map2()`:
ℹ In index: 1.
ℹ With name: f.{.
Caused by error in `glue()`:
! Unterminated quote (`)
Run `rlang::last_trace()` to see where the error occurred.
f=function (x) UseMethod('f')
`f.(`=function (x) x`f.{`=function (x) x
Note that f.( is accepted, only f.{ causes an error.
The usage in actual code (in the ‘box’ package) needs this to dispatch on the type of an unevaluated R expression for an AST walker.
The text was updated successfully, but these errors were encountered:
klmr
changed the title
Regression: ‘roxygen2’ 7.3.0 fails to parse name for S3 class {
Regression: ‘roxygen2’ 7.3.0 fails to parse name of S3 method for class {Jan 16, 2024
I should mention that this breaks a package on CRAN. It was presumably not caught by the revdep checks because it’s only a build dependency (and hence “Suggests”).
MWE:
This leads to:
rlang::last_trace(drop = FALSE)
:The offending package code is:
Note that
f.(
is accepted, onlyf.{
causes an error.The usage in actual code (in the ‘box’ package) needs this to dispatch on the type of an unevaluated R expression for an AST walker.
The text was updated successfully, but these errors were encountered: