require(mosaic)   # Load additional packages here 
knitr::opts_chunk$set(
  tidy=FALSE,     # display code as typed
  size="small")   # slightly smaller font for code

Using RMarkdown

Text

Text can be decorated with bold or italics. It is also possible to

Be sure to put a space after the * when you are creating bullets and a space after # when creating section headers, but not between $ and the mathematical formulas.

Graphics

If the code of an R chunk produces a plot, this plot can be displayed in the resulting file.

gf_point(births ~ date, data = Births78)

R output

Other forms of R output are also displayed as they are produced.

favstats(~ births, data = Births78)

Destination formats

This file can be knit to HTML, PDF, or Word. In RStudio, just select the desired output file type and click on Knit HTML, Knit PDF, or Knit Word. Use the dropdown menu next to that to change the desired file type.

Documenting file creation

It's useful to record some information about how your file was created.

sessionInfo()  # could use devtools::session_info() if you prefer that


ProjectMOSAIC/mosaic documentation built on Feb. 21, 2024, 2:11 a.m.