Skip to content

Commit c34d25d

Browse files
committed
Tweaks to style_pkg()
1 parent 2fa7369 commit c34d25d

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

R/ui-styling.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ 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`, `.Rmarkdown` and/or
10-
#' `.qmd`, `.Rnw` files (vignettes and readme) by changing the `filetype`
11-
#' argument.
9+
#' (code and tests), `.Rmd`, `.Rmarkdown` and/or
10+
#' `.qmd`, `.Rnw` files (vignettes and readme).
1211
#' Carefully examine the results after running this function!
1312
#'
1413
#' @param pkg Path to a (subdirectory of an) R package.
15-
#' @param ... Arguments passed on to the `style` function.
14+
#' @param ... Arguments passed on to the `style` function,
15+
#' see [tidyverse_style()] for the default argument.
1616
#' @param style A function that creates a style guide to use, by default
17-
#' [tidyverse_style()] (without the parentheses). Not used
17+
#' [`tidyverse_style`]. Not used
1818
#' further except to construct the argument `transformers`. See
1919
#' [style_guides()] for details.
2020
#' @param transformers A set of transformer functions. This argument is most
@@ -76,7 +76,7 @@ style_pkg <- function(pkg = ".",
7676
style = tidyverse_style,
7777
transformers = style(...),
7878
filetype = c("R", "Rprofile", "Rmd", "Rmarkdown", "Rnw", "Qmd"),
79-
exclude_files = "R/RcppExports.R",
79+
exclude_files = c("R/RcppExports.R", "R/cpp11.R"),
8080
exclude_dirs = c("packrat", "renv"),
8181
include_roxygen_examples = TRUE,
8282
base_indention = 0,

man/style_dir.Rd

Lines changed: 3 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: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/style_pkg.Rd

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

man/style_text.Rd

Lines changed: 3 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)