Skip to content

Commit d6bf529

Browse files
committed
adds documentation for .Rmarkdown support
1 parent bb61d1c commit d6bf529

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

R/ui-styling.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NULL
66
#' Prettify R source code
77
#'
88
#' Performs various substitutions in all `.R` files in a package
9-
#' (code and tests). One can also (optionally) style `.Rmd` and/or
9+
#' (code and tests). One can also (optionally) style `.Rmd` `.Rmarkdown` and/or
1010
#' `.Rnw` files (vignettes and readme) by changing the `filetype` argument.
1111
#' Carefully examine the results after running this function!
1212
#'
@@ -95,7 +95,7 @@ style_pkg <- function(pkg = ".",
9595
#' @param filetype Vector of file extensions indicating which file types should
9696
#' be styled. Case is ignored, and the `.` is optional, e.g.
9797
#' `c(".R", ".Rmd")`, or `c("r", "rmd")`. Supported values (after
98-
#' standardization) are: "r", "rprofile", "rmd", "rnw".
98+
#' standardization) are: "r", "rprofile", "rmd", "rmarkdown", "rnw". Rmarkdown is treated as Rmd.
9999
#' @param exclude_files Character vector with paths to files that should be
100100
#' excluded from styling.
101101
#' @param exclude_dirs Character vector with directories to exclude
@@ -214,7 +214,7 @@ style_text <- function(text,
214214

215215
#' Prettify arbitrary R code
216216
#'
217-
#' Performs various substitutions in all `.R`, `.Rmd` and/or `.Rnw` files
217+
#' Performs various substitutions in all `.R`, `.Rmd`, `.Rmarkdown` and/or `.Rnw` files
218218
#' in a directory (by default only `.R` files are styled - see `filetype` argument).
219219
#' Carefully examine the results after running this function!
220220
#' @param path Path to a directory with files to transform.
@@ -298,7 +298,7 @@ prettify_any <- function(transformers,
298298
)
299299
}
300300

301-
#' Style `.R`, `.Rmd` or `.Rnw` files
301+
#' Style `.R`, `.Rmd`, `.Rmarkdown` or `.Rnw` files
302302
#'
303303
#' Performs various substitutions in the files specified.
304304
#' Carefully examine the results after running this function!

man/prettify_any.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/prettify_pkg.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/style_dir.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/style_file.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/style_pkg.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)