hugormd: R Markdown and Hugo: Stuff

Description Examples

Description

An R Markdown output format (hugormd::post) and template (also called "post") for writing posts for the Hugo static site generator in R markdown. The Makefile included in the template needs to be edited: at a minimum, the hugo_root variable has to be set to the path to a hugo site. The default is for my system.

Examples

1
2
3
4
5
6
7
## Not run: 
library(rmarkdown)
draft("newpost", "post", "hugormd", edit=F) # or RStudio "New R Markdown"
# generate markdown and figures and copy into ~/myhugosite
system2("make", c("-C", "newpost", "hugo_root=~/myhugosite", "deploy"))

## End(Not run)

agoldst/hugormd documentation built on Nov. 10, 2021, 6:24 p.m.