@@ -28,20 +28,24 @@ styler functionality is available in other tools, most notably
28
28
is used. The most convenient way to set this up is via
29
29
[ ` usethis::use_tidy_github_actions() ` ] ( https://usethis.r-lib.org/reference/tidyverse.html ) .
30
30
31
- * in ` reprex::reprex(..., style = TRUE) ` to prettify reprex code before
32
- printing. To permanently use ` style = TRUE ` without specifying it every time,
33
- you can add the following line to your ` .Rprofile ` (via
34
- ` usethis::edit_r_profile() ` ): ` options(reprex.styler = TRUE) ` .
35
-
36
31
* as a formatter for RMarkdown without modifying the source. This feature is
37
32
implemented as a code chunk option in knitr. use ` tidy = "styler" ` in the
38
33
header of a code chunks (e.g.` ```{r name-of-the-chunk, tidy = "styler"} ` ),
39
34
or ` knitr::opts_chunk$set(tidy = "styler") ` at the top of your RMarkdown
40
35
script.
41
36
37
+ * via the [ R language server] ( https://github.com/REditorSupport/languageserver )
38
+ to format your code in VS Code, atom and others.
39
+
42
40
* As a fixer to the [ ale
43
41
Plug-in] ( https://github.com/dense-analysis/ale/pull/2401 ) for VIM.
44
42
43
+ * in ` reprex::reprex(..., style = TRUE) ` to prettify reprex code before
44
+ printing. To permanently use ` style = TRUE ` without specifying it every time,
45
+ you can add the following line to your ` .Rprofile ` (via
46
+ ` usethis::edit_r_profile() ` ): ` options(reprex.styler = TRUE) ` .
47
+
48
+
45
49
* in the * format-all* command for Emacs in
46
50
[ emacs-format-all-the-code] ( https://github.com/lassik/emacs-format-all-the-code ) .
47
51
0 commit comments