Example for custom reproducibility summaries

knitr::opts_chunk$set(echo = TRUE)

if (requireNamespace("reproducibleRchunks",quietly=TRUE)) {
  library("reproducibleRchunks")
} else {

}

options(reproducibleRchunks.templates = list(
     # latex="\\hrulefill \n \\section{${title}} 
    #  \\medskip \\small 
    #  ${content}\n \\hrulefill \n
    #  ")
  latex="\\marginpar{${content}}"
    ))

Linear Model

Using the pressure data set (vapor pressure of mercury as a function of temperature), we ran a simple regression model with temperature predicting pressure.

model <- lm(pressure~temperature, pressure)

We found the following model coefficients:

result <- broom::tidy(model)

knitr::kable(result)
knitr::kable(result)


Try the reproducibleRchunks package in your browser

Any scripts or data that you put into this service are public.

reproducibleRchunks documentation built on Aug. 8, 2025, 6:38 p.m.