Skip to content

Commit

Permalink
check and fix return of tracker statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Raven Bot committed Mar 14, 2024
1 parent d21451c commit c170a38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/interface_sheets.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ read_db_units <- function(id = getOption("gdrv_auto_env.URL_db_units"))
#' @export
read_tracker_statuses <- function(url, sheet = "unit 1")
{
googlesheets4::read_sheet(url, sheet, skip = 1, trim_ws = FALSE) %>%
statuses_colnames <- c("Unit", "Mini-Unit", "Phase", "Task", "Signoff by", "Status")
result <- googlesheets4::read_sheet(url, sheet, skip = 1, trim_ws = FALSE) %>%
as_statuses()
stopifnot(identical(names(results), statuses_colnames))
dplyr::select(result, statuses_colnames)
}

#' Update the tracker data
Expand Down

0 comments on commit c170a38

Please sign in to comment.