matrix_block: Variations on RMarkdown blocks

View source: R/Blocks.R

matrix_blockR Documentation

Variations on RMarkdown blocks

Description

Creates from an inline chunk output that resembles a regular RMarkdown chunk, but with more compact formatting.

Usage

matrix_block(
  cmd,
  digits = 4,
  ignore_cmd = FALSE,
  phrase = "      ",
  display = FALSE,
  inline = TRUE,
  width = "40%"
)

Arguments

cmd

The expression to be run

digits

How many digits to round to

ignore_cmd

If TRUE, just typeset the result

phrase

Character string separating code from output

display

If TRUE, use $$ rather than single $

inline

If TRUE, typeset the output next to the command

width

Character string such as "40%" saying how big the command block should be.


dtkaplan/Znotes documentation built on Sept. 4, 2022, 10:21 a.m.