#' Insert `%<>%`
#'
#' Inserts [`%<>%`][magrittr::%<>%] at the cursor position.
#'
#' @export
insertAssignmentPipe <- function() {
glyph <- paste0("%<>%", " ")
rstudioapi::insertText(ifelse(nextToSpace(), glyph, prefixSpace(glyph)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.