Skip to content

๐Ÿ“„ A selection of minimal examples used to highlight R Markdown templates, as referred to in the "R Markdown Definitive Guide"

Notifications You must be signed in to change notification settings

kimblew/example-rmd-templates

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

R Markdown Templates: Minimal Examples

This repository provides a couple of minimal examples of R Markdown templates. If you are reading this, you have likely found about example in Chapter 17 in the R Markdown definitive guide book.

The repository contains several basic examples:

  • My Template: shows a minimal R Markdown template, defining several styles for HTML outputs.
  • My Template (Extra Files): includes a custom logo and a style.css file to change the style of tables.
  • My Template (HTML edits): uses a custom HTML template to add a customisable footer to the document.
  • My Template (LaTeX edits): uses a custom LaTeX template which adds extra fields to the header.
  • My Template (Custom Format): this uses a custom R Markdown format to use extra files without a copy having to be made to the directory (see Chapter 18)

These templates are purposely very basic, being designed to demonstrate how custom styles can easily be created. You may wish to fork the repository to customise the designs further.

Installing the Templates

If you want to trial these templates within R Markdown, you can install the templates directly:

# install.packages("devtools")
devtools::install_github("mikey-harper/example-rmd-templates")

This will install the package MyTemplates. Once installed, they will be available within the R Markdown templates as shown below:

R Markdown templates

Adapting the Templates

If you want to use the package as a base for your own template, you may want to fork the repository. It will help to read Chapter 17 and Chapter 18 to find out more about this.

About

๐Ÿ“„ A selection of minimal examples used to highlight R Markdown templates, as referred to in the "R Markdown Definitive Guide"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 57.8%
  • TeX 32.7%
  • CSS 4.8%
  • R 4.7%