macros: Replacements for LaTeX macros

macrosR Documentation

Replacements for LaTeX macros

Description

Replacements for LaTeX macros

Usage

func(x, ...)

sql_func(x)

sql_word(x)

argument(x)

variable(x)

pkg(x, ...)

mdsr_data(x)

mdsr_person(x, ...)

vocab(x, ...)

index_entry(
  index_label = "subject",
  x,
  emph = FALSE,
  index = TRUE,
  .f = NULL,
  alt = NULL
)

Arguments

x

text to wrap in macro

...

arguments passed to index_entry()

index_label

the name of the index

emph

Display the LaTeX entry in italics

index

add LaTeX indexing?

.f

function to apply to x during indexing

alt

alternate character string to use for indexing

Details

These functions are used by the authors to write the book, and are not intended for users.

Examples

func("mutate")
func("mutate", index = FALSE)
func("left_join")
pkg("dplyr")
mdsr_person("Ben Baumer")
mdsr_person("Ben Baumer", emph = TRUE)
mdsr_person("Richard De Veaux")
mdsr_person("Richard De Veaux", alt = "De Veaux, Richard")
vocab(x = "Big data", .f = tolower)
index_entry(x = "Barack Obama")
index_entry(x = "Barack Obama", index = FALSE)
index_entry(x = "Big data", .f = tolower)
index_entry(x = "Twilight", emph = TRUE)
index_entry(x = "Richard De Veaux", alt = "De Veaux, Richard")
index_entry(x = "left_join")

beanumber/mdsr documentation built on Aug. 20, 2024, 12:45 p.m.