Method inserts pipes at the current position(s) of the cursor(s) or replaces all selections, plus it reformats pipe(s) surroundings (see Details for more)
1 |
Method aims to achieve the following format:
exactly one space before %>%
line cannot start with %>%
(unless it is first line of the
file). It will find last non-empty line before the cursor position.
new line after %>%
next line will be indented as the current line is + N spaces; where N is dependent on the RStudio settings
then it's followed by the next word, or it is the end of the line.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.