#' Insert `->`
#'
#' Inserts [`->`][base::assignOps] at the cursor position.
#'
#' @export
insertRightAssignment <- 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.