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
styler::style_text(R'( "\1" )')
Errorin`value[[3L]]()`:!Stylingresultedincodethatisn't parsable. This should not happen. Please file a bug report on GitHub (https://github.com/r-lib/styler/issues) using a reprex.Run `rlang::last_error()` to see where the error occurred.
Of course, this is parseable:
parse(text=R'( "\1" )')
# expression("\1")
The text was updated successfully, but these errors were encountered:
MichaelChirico
changed the title
Styler throws "not parseable" error on parseable script using unprintable ASCII character literall
Styler throws "not parseable" error on parseable script using unprintable ASCII character literal
Aug 27, 2022
MichaelChirico
changed the title
Styler throws "not parseable" error on parseable script using unprintable ASCII character literal
Styler throws "not parseable" error on parseable script using unprintable ASCII character literal "\1"
Aug 27, 2022
Kirill, to clarify, I'm using raw strings to avoid two-layer-escaping -- your latter example is the code that causes issues for styler. Look at the getParseData output for it -- the column numbers are wrong (on 4.2.0 and earlier, at least). lintr's workaround corrects the column numbers.
Of course, this is parseable:
The text was updated successfully, but these errors were encountered: