R/flyexample.R

Defines functions flyexample

Documented in flyexample

#' Run examples from flydoc function
#' 
#' Run the examples from the Examples section of the flydoc
#' documentation.
#' 
#' @param fun The function that has flydoc documentation
#' @export
flyexample <- function(fun){
    text <- Examples(fun)
    source(textConnection(text), echo = TRUE)
}
Dasonk/flydoc documentation built on May 6, 2019, 1:37 p.m.