This is a tiny package that functions as an RStudio addin. It lets you add a right assignment operator.
Install with
if (!requireNamespace("devtools", quietly = TRUE))
install.packages("devtools")
devtools::install_github('mraess/insert_assignment_right')
You can now either click on the add-in function at the add-in tab, or add a keyboard shortcut:
EXAMPLE: ALT+R, r iris %>% select(1:2) -> iris_sub
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.