run.posts: Helper function used for SIT blog

Description Usage Arguments Value Examples

Description

Helper function used for SIT blog

Usage

1
2
3
4
5
6
run.posts(filename.pattern = "^\\d*-.*.r$", move.post = F,
  blog.folder = "web", move.source.post = F, compress.plots = F,
  pngout.location = "c:/Library/exe/pngout.exe", clean.figure.folder = T,
  add.info2post.fn = add.SIT.info2post, add.date = T, base.url = "/",
  fig.width = 9, fig.height = 6, remove.UTF = T,
  render.fn = render_jekyll)

Arguments

filename.pattern

post files to process, defaults to '^\d*-.*.r$'

move.post

flag to inidicate to move post to blog folder, defaults to FALSE

blog.folder

blog folder

move.source.post

flag to indicate to move source post to blog folder, defaults to FALSE

compress.plots

flag to inidicate that plots must be compressed, defaults to FALSE

pngout.location

pngout location, defaults to 'c:/Library/exe/pngout.exe'

clean.figure.folder

flag to inidicate that figure folder must be cleaned, defaults to TRUE

add.info2post.fn

add custom info to the post function, defaults to add.SIT.info2post

add.date

flag to indicate to include date when post was run, defaults to TRUE

base.url

blog base url, defaults to "/"

fig.width

figure width, defaults to 9

fig.height

figure height, defaults to 6

remove.UTF

remove the non-ASCII characters, defaults to TRUE

render.fn

knitr render function, defaults to render_jekyll

Value

output Rmd filename

Examples

1
2
3
4
5
6
## Not run: 
filename = 'post.test.r'
make.rmd(filename, 'post.r')
make.rmd(filename)

## End(Not run)

systematicinvestor/SIT.blog documentation built on May 31, 2019, 12:49 a.m.