knitr::opts_chunk$set(tidy = FALSE)

Section One

summary(cars)

Section Two

You can also embed plots, for example:

plot(cars)

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

Section Three

You can also print data frames

mtcars
knitr::write_bib("knitr", "packages.bib")


rstudio/rmarkdown documentation built on April 9, 2024, 10:43 p.m.