https://github.com/mps9506/mpstemplates
https://github.com/mps9506/mpstemplates
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mps9506/mpstemplates
- Owner: mps9506
- License: other
- Created: 2022-02-09T16:55:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T18:39:52.000Z (about 2 years ago)
- Last Synced: 2025-02-24T06:41:39.360Z (3 months ago)
- Language: R
- Homepage: https://mps9506.github.io/mpsTemplates/
- Size: 21.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
dev = "ragg_png",
out.width = "100%",
dpi = 300
)
```# mpsTemplates
[](https://choosealicense.com/)
[](https://github.com/mps9506/mps-templates/actions)```{r}
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:
```yaml
template:
package: mpsTemplates
bootstrap: 5navbar:
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:
```{r eval=FALSE}
usethis::use_github_action("pkgdown")
```## rmarkdown
The package includes the following rmarkdown templates:
- *mps pdf Cormorant template*: Intended for pdf reports.
These are available in the RStudio New -> Rmarkdown selector after installing this package.
## bookdown
The package include the following project:
- *mps Bookdown Single Page Website*: Intended for single page websites hosted on github pages
These are available by loading the package and selecting "New Project" -> "New Directory" -> "mps Github Pages Website"