kr_create: Create a new post from a default template

Description Usage Arguments Details Examples

Description

Creates a new post from the built in template, using either Rmd (default), IPython notebook, or Markdown

Usage

1
kr_create(filename, format = NULL, template = NULL, ...)

Arguments

filename

Where this file should be created.

format

The format of the knowledge post to be created: either Rmd, ipynb, or md. By default, retrieved from the extension of the filename.

template

Optionally, a template to create the knowledge post from.

...

Global arguments to knowledge_repo commands, such as repo or noupdate (see Details)

Details

Global arguments that can be passed to all knowledge_repo commands include:

Examples

1
2
3
4
# set up a repository and post
repo <- tempfile()
kr_init(repo)
kr_create("test.Rmd", repo = repo)

dgrtwo/knowledgerepo documentation built on May 25, 2019, 4:23 p.m.