seemsPretty: Heuristic test for pretty-printing.

Description Usage Arguments Value Examples

View source: R/convert.R

Description

#' A heuristic test for whether it appears that x is 'pretty-printed'. ie whether it is of the form [2][][3] (printed-printed) or "c(2L), integer(0), c(3L)" (not pretty-printed)

Usage

1

Arguments

x

A character vector defining a 'parental' object

Value

A logical of length 1. Returns true if it appears x is pretty-printed.

Examples

1
2
seemsPretty("integer(0),1,c(1,2,4),3")
seemsPretty("[][1][2]")

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.