Alias for jeksterslabRutils::util_style() with the following arguments:

  • dir = getwd()

  • recursive = TRUE

  • par = FALSE

  • ncores = NULL

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

Arguments

dir

Character string. Directory.

recursive

Logical. If TRUE, recursively style all R scripts (.R, .r) and R Markdown files (.Rmd, .rmd) in dir.

par

Logical. If TRUE, use multiple cores.

ncores

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

See also