Skip to content

Commit

Permalink
add watermark draft and improved comments in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisp committed Sep 9, 2017
1 parent 42b8e19 commit 88dbf6c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/corp-palette.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
library(ggplot2)
library(scales)
# ./R/corp-palette.R
# Defines font and a hypothetical corporate palette, and makes them ggplot2 defaults

corp_font <- "Calibri"

Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# rmarkdown-corporate-eg
Example folder system for a corporately-styled RMarkdown document

Example folder system for an analytical project and corporately-styled RMarkdown report. Features include:

- fonts
- colours (headings and graphs),
- logo
- draft watermark
- builds successfully as a stand-alone HTML file even on a mapped network drive

Check out:

- the [built version](http://ellisp.github.io/misc/rmarkdown-styled-demo.html)
- accompanying [blog post](http://ellisp.github.io/blog/2017/09/09/rmarkdown) on Peter's Stats Stuff

2 changes: 2 additions & 0 deletions build.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Peter Ellis 6 September 2017

library(rmarkdown)
library(ggplot2)
library(scales)
library(openxlsx)
library(tidyverse)
library(stringr)
Expand Down
2 changes: 1 addition & 1 deletion report-1/report.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cat(stri_rand_lipsum(1))

# Purpose

This is basically just a demo of how to deal with a few issues with making R Markdown files comply with corporate styling - fonts, logo, heading sizes and colours, etc. The [source code of the mini-project that builds this file is on GitHub](https://github.com/ellisp/rmarkdown-corporate-eg).
This is basically just a demo of how to deal with a few issues with making R Markdown files comply with corporate styling - fonts, logo, heading sizes and colours, etc. The [source code of the mini-project that builds this file is on GitHub](https://github.com/ellisp/rmarkdown-corporate-eg). There is also an accompanying [blog post](http://ellisp.github.io/blog/2017/09/09/rmarkdown) on Peter's Stats Stuff.

The features include:

Expand Down

0 comments on commit 88dbf6c

Please sign in to comment.