Skip to content

Commit

Permalink
check for tbl_checked before sundering
Browse files Browse the repository at this point in the history
  • Loading branch information
yjunechoe committed Aug 4, 2024
1 parent 1013fe2 commit 5da79bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/get_sundered_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ get_sundered_data <- function(
)
}

# Stop function if `tbl_checked` is not present
if (!"tbl_checked" %in% colnames(agent$validation_set)) {
stop(
"`agent` is missing `tbl_checked` information required for sundering. ",
"See `?interrogate`."
)
}

# Get the row count of the input table
row_count_input_tbl <-
input_tbl %>%
Expand Down

0 comments on commit 5da79bb

Please sign in to comment.