#' @@param: describe input parameters
#'
#' @tagUsage @param name Basic description. Multiple lines of text are fine,
#' and are often useful if your parameter does a lot.
setClass("ParamTag", contains = "Tag",
list(arguments = "character"))
setMethod("value", "ParamTag", function(tag) tag@arguments)
setMethod("value<-", "ParamTag", function(tag, value) {
pieces <- str_split_fixed(value, "[[:space:]]+", 2)
tag@arguments <- setNames(pieces[, 2], pieces[, 1])
tag
})
setMethod("writeRd", "ParamTag", function(object) {
RdCommand("arguments", object@arguments)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.