tidyText: Print text in a tidy way.

View source: R/tidyText.R

tidyTextR Documentation

Print text in a tidy way.

Description

Print text in a tidy way.

Usage

tidyText(
  text,
  leftSign = "\\{",
  commaSign = ",",
  rightSign = "\\}",
  showN = 1000,
  removeSpace = TRUE
)

Arguments

text

the text to be tidy.

leftSign

the left one of paired sign.

commaSign

the unpaired sign, default is ",".

rightSign

the right one of paired sign.

showN

integer, the number of characters to show.

removeSpace

logical, remove unnecessary space, the default is TRUE.

Examples

text = 'list1:{A:{a = 1, b = 3, c = "4"}, B:{x = "", y = "1-3"}}'
tidyText(text)


paodan/funcTools documentation built on April 1, 2024, 12:01 a.m.