#' Say hello to someone
#'
#' This command can be invoked to say hello to a person.
#'
#' @param who character(1) The name of the person to say hello to.
#'
#' @return character(1) The greeting.
#'
#' @examples
#' hello("Han")
#'
#' @export
hello <-
function(who)
{
## argument checks
stopifnot(
is.character(who), length(who) == 1, !is.na(who)
)
## implementation
txt <- paste("hello", who)
message(txt)
## return
txt
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.