rmd2md: This R script will process all R markdown files (those with...

Description Usage Arguments Value Author(s)

Description

This R script will process all R markdown files (those with in_ext file extention, .rmd by default) in the current working directory. Files with a status of 'processed' will be converted to markdown (with out_ext file extention, '.markdown' by default). It will change the published parameter to 'true' and change the status parameter to 'publish'.

Usage

1
2
3
rmd2md(path_site = getwd(), dir_rmd = "_rmd", dir_md = "_posts",
  figures = "figures", out_ext = ".md", in_ext = ".Rmd",
  recursive = FALSE)

Arguments

path_site

path to the local root storing the site files

dir_rmd

directory containing R Markdown files (inputs)

dir_md

directory containing markdown files (outputs)

figures

where to store/get images created from plots directory +"/" (relative to path_site)

out_ext

the file extention to use for processed files.

in_ext

the file extention of input files to process.

recursive

should rmd files in subdirectories be processed.

Value

nothing.

Author(s)

Jason Bryer <jason@bryer.org> edited by Andy South and Matthew Upson <matthew.a.upson@gmail.com>


ivyleavedtoadflax/rmd2md documentation built on May 18, 2019, 7:14 a.m.