knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(drawExpression)

Visualisation of common R data structures

Vector

x <- 4:6
drawExpression("x")
names(x) <- LETTERS[1:3]
drawExpression("x", draw.names = TRUE)
drawExpression("x[2]")

List

l <- list(F, 1:3, list(1:2, "foo"))
drawExpression("l")

Functions

drawExpression("sum(x)")


sylvainloiseau/drawExpression documentation built on May 3, 2019, 9:39 p.m.