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

ensure_correct_txt

Ensure a correct text of all strings and numeric constants


Description

Make sure text of the tokens STR_CONST and NUM_CONST is correct and adapt if necessary. We replace offending text in the terminal expressions with the text of their parents if their line / col position matches and return an error otherwise.

Usage

ensure_correct_txt(pd, text)

Arguments

pd

A parse table.


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.