Skip to content

Styler throws "not parseable" error on parseable script using unprintable ASCII character literal "\1" #991

@MichaelChirico

Description

@MichaelChirico
styler::style_text(R'( "\1" )')
Error in `value[[3L]]()`:
! Styling resulted in code that isn'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")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions