Select a piece of text with a cursor and call these functions as an add-in to enclose the text with special symbols. Text between $.$ is interpreted as an inline equation and between $$.$$ or \[.\] as a block equation in R Markdown.

rmd_equation_a_inline(context = rs_get_context())

rmd_equation_b_block(context = rs_get_context())

rmd_equation_b_block2(context = rs_get_context())

Arguments

context

(class document_context)
Object with context of active RStudio document.

See also

Other R Markdown formatting add-ins: format_rmd, rmd_code_block(), rmd_list()