Skip to main content

R Markdown: The Definitive Guide A PreTeXt Edition

Preface Software information and conventions

The R session information when compiling this book is shown below:
xfun::session_info(c(
  'blogdown', 'bookdown', 'knitr', 'rmarkdown', 'htmltools',
  'reticulate', 'rticles', 'flexdashboard', 'learnr', 'shiny',
  'revealjs', 'pkgdown', 'tinytex', 'xaringan', 'tufte'
), dependencies = FALSE)
## R version 4.5.2 (2025-10-31)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.3 LTS
## 
## Locale:
##   LC_CTYPE=C.UTF-8       LC_NUMERIC=C          
##   LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8    
##   LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
##   LC_PAPER=C.UTF-8       LC_NAME=C             
##   LC_ADDRESS=C           LC_TELEPHONE=C        
##   LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   
## 
## Package version:
##   blogdown_1.23       bookdown_0.46      
##   flexdashboard_0.6.3 htmltools_0.5.9    
##   knitr_1.51.2        learnr_0.11.6      
##   pkgdown_2.2.0       reticulate_1.44.1  
##   revealjs_0.10.0     rmarkdown_2.30     
##   rticles_0.27        shiny_1.12.1       
##   tinytex_0.58        tufte_0.14.0       
##   xaringan_0.31      
## 
## 
## Pandoc version: 2.13
## 
## LaTeX version used: 
##   TeX Live 2025 (TinyTeX) with tlmgr 2025-11-06
We do not add prompts (> and +) to R source code in this book, and we comment out the text output with two hashes ## by default. Package names are in emphasized text (e.g., rmarkdown), and inline code and filenames are formatted in a typewriter font (e.g., knitr::knit('foo.Rmd')). Function names are followed by parentheses (e.g., blogdown::serve_site()). The double-colon operator :: means accessing an object from a package.
Rmd is the filename extension of R Markdown files, and also a shorthand for R Markdown in this book.