R/utils.R

.maybe_future <- function(season) {
  # Lame way of checking if I want to use the cache
  # by checking if the season is > the current year
  current_year <- as.POSIXlt(Sys.Date())$year + 1900
  season >= current_year
}
NathanDeMaria/EndGame documentation built on May 29, 2019, 3:03 a.m.