Render R Scripts and R Markdown Files

util_render(
  dir = getwd(),
  recursive = FALSE,
  files = NULL,
  par = TRUE,
  ncores = NULL
)

Arguments

dir

Character string. Directory which contains target files. Ignored if file is NOT NULL.

recursive

Logical. If TRUE, recursively render all R scripts (.R, .r) and R Markdown files (.Rmd, .rmd) in dir. Ignored if file is NOT NULL.

files

Character vector. Vector of files to render.

par

Logical. If TRUE, use multiple cores.

ncores

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

Author

Ivan Jacob Agaloos Pesigan

Examples

if (FALSE) { util_render( dir = getwd(), par = FALSE ) }