diff --git a/dev/articles/customizing_styler.html b/dev/articles/customizing_styler.html index f25d6cabd..3963df96a 100644 --- a/dev/articles/customizing_styler.html +++ b/dev/articles/customizing_styler.html @@ -248,7 +248,7 @@

How styler works#> pd_flat$spaces[paren_after & (pd_flat$newlines == 0L)] <- 0L #> pd_flat #> } -#> <bytecode: 0x56180663bee8> +#> <bytecode: 0x5626fa79fff8> #> <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 @@ -396,7 +396,7 @@

Implementation details#> outer_indention_refs = NA) #> transformed_absolute_indent #> } -#> <bytecode: 0x56180a03e6c8> +#> <bytecode: 0x5626fe18c448> #> <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 @@ -534,7 +534,7 @@

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

With our example function set_line_break_before_curly_opening() we don’t need to diff --git a/dev/articles/remove_rules.html b/dev/articles/remove_rules.html index 66b9aef9a..0e81fc8e8 100644 --- a/dev/articles/remove_rules.html +++ b/dev/articles/remove_rules.html @@ -281,7 +281,7 @@

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

Next, you simply set that element to NULL.

diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml
index 060b61eed..4c1753c3e 100644
--- a/dev/pkgdown.yml
+++ b/dev/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
   strict: strict.html
   styler: styler.html
   third-party-integrations: third-party-integrations.html
-last_built: 2024-05-20T11:56Z
+last_built: 2024-05-23T20:54Z
 urls:
   reference: https://styler.r-lib.org/reference
   article: https://styler.r-lib.org/articles
diff --git a/dev/reference/style_file.html b/dev/reference/style_file.html
index 7c790de69..c3bc3a8d4 100644
--- a/dev/reference/style_file.html
+++ b/dev/reference/style_file.html
@@ -236,7 +236,7 @@ 

Examples

# but the first is most convenient: style_file(file, strict = TRUE) #> Styling 1 files: -#> /tmp/RtmpNKm3pi/styler16a8692f4c3e.R +#> /tmp/RtmpJafyhw/styler166521ef6f7d.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/RtmpNKm3pi/styler16a8692f4c3e.R +#> /tmp/RtmpJafyhw/styler166521ef6f7d.R #> ──────────────────────────────────────── #> Status Count Legend #> 1 File unchanged. @@ -255,7 +255,7 @@

Examples

#> ──────────────────────────────────────── style_file(file, transformers =
tidyverse_style(strict = TRUE)) #> Styling 1 files: -#> /tmp/RtmpNKm3pi/styler16a8692f4c3e.R +#> /tmp/RtmpJafyhw/styler166521ef6f7d.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/RtmpNKm3pi/styler16a8692f4c3e.R +#> /tmp/RtmpJafyhw/styler166521ef6f7d.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/RtmpNKm3pi/styler16a8692f4c3e.R +#> /tmp/RtmpJafyhw/styler166521ef6f7d.R #> ──────────────────────────────────────── #> Status Count Legend #> 1 File unchanged. diff --git a/dev/sitemap.xml b/dev/sitemap.xml index c5c53da23..5b4dda12c 100644 --- a/dev/sitemap.xml +++ b/dev/sitemap.xml @@ -294,9 +294,6 @@ https://styler.r-lib.org/reference/flatten_pd.html - - https://styler.r-lib.org/reference/generate_test_samples.html - https://styler.r-lib.org/reference/get_addins_style_transformer_name.html