#' Sys.time() wrapper parse
#'
#' Parses Sys.time() for a filename-friendly timestamp
#' @export
#' @examples
#' get_dateTime()
#' [1] "2019-01-01_000001"
get_dateTime <- function()
{
dateTime <- Sys.time()
dateTime <- gsub(" ", "_", dateTime)
dateTime <- gsub(":", "", dateTime)
dateTime <- gsub("UTC", "", dateTime)
return(dateTime)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.