tidy_rstudio | R Documentation |
If any R code is selected in the RStudio source editor, this function reformats the selected code; otherwise it reformats the current open file (if it is unsaved, it will be automatically saved).
tidy_rstudio(...)
... |
Arguments to be passed to |
If the output is not what you want, you can undo the change in the editor (Ctrl + Z or Command + Z).
formatR::tidy_rstudio() formatR::tidy_rstudio(args.newline = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.