From 34e072433e99af0fcc65fc0d007a34d7f723a71b Mon Sep 17 00:00:00 2001 From: IndrajeetPatil Date: Sun, 3 Dec 2023 18:01:07 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20r-lib/st?= =?UTF-8?q?yler@d6fee24545a76b621eca8a35b8293aba083bf156=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/customizing_styler.html | 6 +++--- articles/remove_rules.html | 2 +- pkgdown.yml | 2 +- reference/style_file.html | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/articles/customizing_styler.html b/articles/customizing_styler.html index d36a792f1..4d692f4a7 100644 --- a/articles/customizing_styler.html +++ b/articles/customizing_styler.html @@ -237,7 +237,7 @@

How styler works#> pd_flat$spaces[paren_after & (pd_flat$newlines == 0L)] <- 0L #> pd_flat #> } -#> <bytecode: 0x555ada6de4f8> +#> <bytecode: 0x55aa318ec7c0> #> <environment: namespace:styler>

As the name says, this function removes spaces after the opening parenthesis. But how? Its input is a nest. Since the visitor @@ -385,7 +385,7 @@

Implementation details#> outer_indention_refs = NA) #> transformed_absolute_indent #> } -#> <bytecode: 0x555ad712eb30> +#> <bytecode: 0x55aa2e33e970> #> <environment: namespace:styler>

This means that the order of the styling is clearly defined and it is for example not possible to modify line breaks based on spacing, because @@ -523,7 +523,7 @@

Showcasing the development #> pd$lag_newlines[round_after_curly] <- 0L #> pd #> } -#> <bytecode: 0x555ada76c940> +#> <bytecode: 0x55aa3197ac08> #> <environment: namespace:styler>

With our example function set_line_break_before_curly_opening() we don’t need to diff --git a/articles/remove_rules.html b/articles/remove_rules.html index 532d0ef44..3588ace6f 100644 --- a/articles/remove_rules.html +++ b/articles/remove_rules.html @@ -272,7 +272,7 @@

Practice#> pd$text[to_replace] <- "<-" #> pd #> } -#> <bytecode: 0x555eb006aea0> +#> <bytecode: 0x5577e439dfe0> #> <environment: namespace:styler>

Next, you simply set that element to NULL.

diff --git a/pkgdown.yml b/pkgdown.yml
index 56c6e692f..596722aa6 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
   strict: strict.html
   styler: styler.html
   third-party-integrations: third-party-integrations.html
-last_built: 2023-12-03T17:35Z
+last_built: 2023-12-03T18:00Z
 urls:
   reference: https://styler.r-lib.org/reference
   article: https://styler.r-lib.org/articles
diff --git a/reference/style_file.html b/reference/style_file.html
index 6ba646905..476e88efe 100644
--- a/reference/style_file.html
+++ b/reference/style_file.html
@@ -236,7 +236,7 @@ 

Examples

# but the first is most convenient: style_file(file, strict = TRUE) #> Styling 1 files: -#> /tmp/Rtmp4HG2E2/styler187c7105844e.R ℹ +#> /tmp/RtmpfSRozg/styler18a651a6189.R ℹ #> ──────────────────────────────────────── #> Status Count Legend #> ✔ 0 File unchanged. @@ -246,7 +246,7 @@

Examples

#> Please review the changes carefully! style_file(file, style = tidyverse_style, strict = TRUE) #> Styling 1 files: -#> /tmp/Rtmp4HG2E2/styler187c7105844e.R ✔ +#> /tmp/RtmpfSRozg/styler18a651a6189.R ✔ #> ──────────────────────────────────────── #> Status Count Legend #> ✔ 1 File unchanged. @@ -255,7 +255,7 @@

Examples

#> ──────────────────────────────────────── style_file(file, transformers =
tidyverse_style(strict = TRUE)) #> Styling 1 files: -#> /tmp/Rtmp4HG2E2/styler187c7105844e.R ✔ +#> /tmp/RtmpfSRozg/styler18a651a6189.R ✔ #> ──────────────────────────────────────── #> Status Count Legend #> ✔ 1 File unchanged. @@ -266,7 +266,7 @@

Examples

# only style indention and less invasive levels (i.e. spaces) style_file(file, scope = "indention", strict = TRUE) #> Styling 1 files: -#> /tmp/Rtmp4HG2E2/styler187c7105844e.R ✔ +#> /tmp/RtmpfSRozg/styler18a651a6189.R ✔ #> ──────────────────────────────────────── #> Status Count Legend #> ✔ 1 File unchanged. @@ -276,7 +276,7 @@

Examples

# name levels explicitly to not style less invasive levels style_file(file, scope = I(c("tokens", "spaces")), strict = TRUE) #> Styling 1 files: -#> /tmp/Rtmp4HG2E2/styler187c7105844e.R ✔ +#> /tmp/RtmpfSRozg/styler18a651a6189.R ✔ #> ──────────────────────────────────────── #> Status Count Legend #> ✔ 1 File unchanged.