#' get the last element of a vector
#' @param .x vector
#' @examples
#' last_element(c(1, 7, 6, 4))
#' @export
last_element <- function(.x) {
secret_function()
return(.x[length(.x)])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.