render.post: Render a post from an R markdown file

Description Usage Arguments Value Examples

View source: R/engine.R

Description

Render an .Rmd file into a page according to its layout template post templates are stored in site/template Better date functionality

Usage

1
2
  render.post(site, postname, layout, fig.path,
    includetags)

Arguments

site

Absolute path to your Samatha site

postname

Name of the Rmd source for the post

layout

The name of the layout file used to render the post

fig.path

name of the directory in the site where figures (particularly R charts etc.) are to be kept

Value

Object of class Samatha.Page An object of class Samatha.Page is a list containing at least the following components: html A character string of the html of a page layout The name of the layout file used to render the html file Name of the file to write the html to title title for the page sourcefile path to the source R or Rmd file for the page

Examples

1
2
3
4
## Not run: 
render.post(site, "My_first_post.Rmd", layout = "default", fig.path = "img")

## End(Not run)

DASpringate/samatha documentation built on May 6, 2019, 1:16 p.m.