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 authored Nov 16, 2023
1 parent 6ce2e36 commit 592602c
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 592602c

Please sign in to comment.