Nothing
#' Print friendly English date
#'
#' @param date date vector of length 1
#'
#' @return string of format "Friday 12 April 2019", regardless of locale.
format_date <- function(date) {
WEEKDAYS <- c(
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
)
weekday <- WEEKDAYS[lubridate::wday(date, week_start = 1)]
day <- format(date, "%d")
month <- month.name[as.integer(format(date, "%m"))]
year <- format(date, "%Y")
return(paste(
weekday,
day,
month,
year
))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.