knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  dev = "ragg_png",
  out.width = "100%",
  dpi = 300
)

mpsTemplates

![license](https://img.shields.io/badge/license-MIT + file LICENSE-lightgrey.svg) R-CMD-check

library(ggplot2)
library(mpsTemplates)
ggplot(cars) +
  geom_point(aes(speed, dist)) +
  theme_mps_noto() +
  labs(title = "Cars", subtitle = "Speed and stopping distance",
       caption = "Ezekiel, M (1930) Methods of Correlation Analysis",
       x = "Speed [mph]",
       y = "Stopping Distance [ft]")

pkgdown

The package includes some pkgdown template files intended for use by my packages.

To use, add/edit _pkgdown.yaml in the package root directory:

template:
  package: mpsTemplates
  bootstrap: 5

navbar:
  type: light
  bg: light
  structure:
    right: [search, github]

AND add the following to the DESCRIPTION:

Config/Needs/website: mps9506/mpsTemplates

Use rlibs Github Action to build the pkgdown documentation:

usethis::use_github_action("pkgdown")

rmarkdown

The package includes the following rmarkdown templates:

These are available in the RStudio New -> Rmarkdown selector after installing this package.

bookdown

The package include the following project:

These are available by loading the package and selecting "New Project" -> "New Directory" -> "mps Github Pages Website"



mps9506/mpsTemplates documentation built on March 19, 2023, 3:05 a.m.