Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

style_text("'here
is a string
'")

styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.