styler (version 1.1.1)

fix_quotes: Replace single quotes with double quotes

Description

We do not use deparse() as in previous implementations but paste0() since the former approach escapes the reverse backslash in the line break character \n whereas the solution with paste0() does not.

Usage

fix_quotes(pd_flat)

Arguments

pd_flat

A flat parse table.

Examples

Run this code
# NOT RUN {
style_text("'here
is a string
'")
# }

Run the code above in your browser using DataCamp Workspace