#' Return Numeric of Current year
#'
#' @rdname current_year
#' @export
#' @return A scalar numeric
current_year = function() {
as.numeric(format(Sys.Date(), "%Y"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.