#' Returns the description of the function.
#'
#' @template arg_smoof_function
#' @return [\code{character(1)}]
#' A character string representing the description of the function.
#' @export
getDescription = function(fn) {
UseMethod("getDescription")
}
#' @export
getDescription.smoof_function = function(fn) {
return(attr(fn, "description"))
}
#' @export
getDescription.smoof_wrapped_function = function(fn) {
return(getDescription(getWrappedFunction(fn)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.