Learn R Programming

docorator (version 0.5.2)

create_chunk: Create prep_obj_tex code chunks Taken from https://gist.github.com/MichaelJW/b4a3dd999a47b137d12f42a8f7562b11

Description

Create prep_obj_tex code chunks Taken from https://gist.github.com/MichaelJW/b4a3dd999a47b137d12f42a8f7562b11

Usage

create_chunk(x, transform)

Value

printed code chunk to be included as-is in the render engine

Arguments

x

docorator object

transform

optional latex transformation function to apply to a gt latex string

Examples

Run this code
if (FALSE) {
docorator <- gt::exibble |>
  gt::gt() |>
  as_docorator(save_object = FALSE)
create_chunk(docorator, transform = NULL)
}

Run the code above in your browser using DataLab