Skip to content

Commit

Permalink
Merge pull request #573 from rstudio/bugfix-get_agent_report-arrange_by
Browse files Browse the repository at this point in the history
Bugfix `get_agent_report(arrange_by)` in dev
  • Loading branch information
rich-iannone authored Oct 16, 2024
2 parents 4561c83 + a3fb865 commit 58301b6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/get_agent_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,10 @@ get_agent_report <- function(

# nocov start

# resolve `arrange_by` + post-`interrogate()` filtering of `$validation_set`
rows_keep <- match(report_tbl$i, validation_set$i)
validation_set <- validation_set %>%
dplyr::filter(.data$i %in% report_tbl$i)
dplyr::slice(.env$rows_keep)
eval <- eval[report_tbl$i]
extracts <-
agent$extracts[
Expand Down
Loading

0 comments on commit 58301b6

Please sign in to comment.