R/footnoter.R

#' @title Footnote
#'
#' @description Create a footnote from selected text.
#'
#' @return footnote text (in markdown)
#' 
#' @rdname footnote
#' @export
#' @importFrom rstudioapi getSourceEditorContext insertText
#' @examples 
#' \dontrun{
#' remedy_example(
#'     c( "# Create a footnote"), 
#'     footnoter
#'     )
#' }
footnoter <- function() enclose("^[", "]")

Try the remedy package in your browser

Any scripts or data that you put into this service are public.

remedy documentation built on May 2, 2019, 8:30 a.m.