knit2blog: Knit .Rmd files to Octopress blog directory as properly...

Description Usage Arguments Details

View source: R/knit2blog.R

Description

This function knits a file to .html/markdown and sends the result to Octopress blog source directory with proper yaml front matter

Usage

1
2
3
4
knit2blog(file, title, address = title, format = c("html", "markdown"),
  layout = "post", comments = TRUE, categories = "",
  blogdir = getOption("blogdir"), postdir = getOption("postdir"),
  hasWidgets = FALSE, ...)

Arguments

file

The .Rmd file to knit

title

The title of the resulting blog post

address

The name the file will have on the server (and URL)

format

Output format for rendering. Either "html" or "markdown"

layout

Jekyll format of resulting file. Defaults to "post."

comments

Include comments? defaults to "true"

categories

Character vector. What categories to associate with the result?

blogdir

Character. Where to put the result?

postdir

Character. Post directory with respect to blog directory.

hasWidgets

Does the document use htmlwidgets? (needed for render function choice)

...

passed to rmarkdown::render()

Details

Uses yaml front matter as explained in Jekyll documentation: http://jekyllrb.com/docs/frontmatter/


markwh/markwrites documentation built on May 21, 2019, 12:26 p.m.