Skip to content

Commit

Permalink
Update R/epi_df.R
Browse files Browse the repository at this point in the history
Co-authored-by: brookslogan <[email protected]>
  • Loading branch information
dshemetov and brookslogan committed Jan 17, 2024
1 parent e58bae1 commit 3d58f3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/epi_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ new_epi_df <- function(x = tibble::tibble(), geo_type, time_type, as_of,
as_of <- max(x$issue)
} else if ("version" %in% names(x)) {
as_of <- max(x$version)
} # If we got here then we failed
else {
} else {
# If we got here then we failed; use the current datetime
as_of <- Sys.time()
} # Use the current day-time
}
}

# Define metadata fields
Expand Down

0 comments on commit 3d58f3f

Please sign in to comment.