#' Find upcoming tuesday
#' @importFrom lubridate wday today
#' @export
next_tuesday <- function() {
todays_date <- lubridate::today(tz = "America/New_York")
diff_tuesday <- 3 - lubridate::wday(todays_date)
if (diff_tuesday < 0) {
diff_tuesday <- diff_tuesday + 7
}
return(todays_date + diff_tuesday)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.