pkg_render: Render 'R' and 'R' Markdown Files in the Package Directory

Description Usage Arguments Author(s) Examples

View source: R/pkg_render.R

Description

Renders R and R Markdown files in the package directory.

Usage

1
2
3
4
5
6
7
8
pkg_render(
  pkg_root = getwd(),
  readme = TRUE,
  vignettes = TRUE,
  tests = TRUE,
  par = FALSE,
  ncores = NULL
)

Arguments

pkg_root

Character string. Package root directory.

readme

Logical. Render README.Rmd.

vignettes

Logical. Render vignettes/*.Rmd|*.R.

tests

Logical. Render tests/testhat/*.Rmd|*.R.

par

Logical. If TRUE, use multiple cores.

ncores

Integer. Number of cores to use if par = TRUE. If unspecified, defaults to detectCores() - 1.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
pkg_render(
  pkg_root = "~/boilerplatePackage",
  readme = TRUE,
  vignettes = TRUE,
  tests = TRUE,
  par = FALSE
)

## End(Not run)

jeksterslabds/jeksterslabRpkg documentation built on Jan. 22, 2021, 11:43 p.m.