Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformer categories and UTF-8 note #406

Merged
merged 2 commits into from Jul 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/style-guides.R
Expand Up @@ -72,7 +72,6 @@ tidyverse_style <- function(scope = "tokens",
indent_without_paren = partial(indent_without_paren,
indent_by = indent_by
),
fix_quotes,
remove_space_before_closing_paren,
remove_space_before_opening_paren = if (strict) remove_space_before_opening_paren,
add_space_after_for_if_while,
Expand Down Expand Up @@ -146,6 +145,7 @@ tidyverse_style <- function(scope = "tokens",

token_manipulators <- if (scope >= "tokens") {
lst(
fix_quotes,
force_assignment_op,
resolve_semicolon,
add_brackets_in_pipe,
Expand Down
5 changes: 4 additions & 1 deletion R/ui.R
Expand Up @@ -175,7 +175,10 @@ prettify_any <- function(transformers, filetype, recursive, exclude_files) {
#' Style `.R` and/or `.Rmd` files
#'
#' Performs various substitutions in the files specified.
#' Carefully examine the results after running this function!
#' Carefully examine the results after running this function!
#' @section Encoding:
#' UTF-8 encoding is assumed. Please convert your code to UTF-8 if necessary
#' before applying styler.
#' @param path A character vector with paths to files to style.
#' @inheritParams style_pkg
#' @inheritSection transform_files Value
Expand Down
6 changes: 6 additions & 0 deletions man/style_file.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.