curr_day <- function() as.integer(format(Sys.time(), "%d", tz = "EST"))
curr_month <- function() as.integer(format(Sys.time(), "%m", tz = "EST"))
curr_year <- function() as.integer(format(Sys.time(), "%Y", tz = "EST"))
valid_days <- function() seq_len(25)
valid_years <- function() {
if (curr_month() == 12) {
seq(2015, curr_year())
} else {
seq(2015, curr_year() - 1)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.