R/Return.R

Defines functions Return

Documented in Return

#' Look at flydoc return
#' 
#' Look at the the return for your flydoc documnetation
#' for a given function.  This is what drives the section
#' labeled "Value" in the help files.
#' 
#' @param fun A function
#' @aliases Value
#' @export
Return <- function(fun){
    flyget("Return", fun)
}

#' Set documentation for return
#' 
#' Set a return for your flydoc documentation for a
#' given function. This is what drive the section
#' labeled "Value" in the help files.
#' 
#' @param func A function to add a flydoc return to.
#' @param value A character string containing the 
#'  return to add to the function's documentation
#' @export
"Return<-" <- function(func, value){
    invisible(flyassign("Return", func, value))
}
Dasonk/flydoc documentation built on May 6, 2019, 1:37 p.m.