Skip to content

Commit c6863ea

Browse files
committed
validate new_tibble output for safety
1 parent 1acd8d3 commit c6863ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ importFrom(stats,cor)
117117
importFrom(stats,median)
118118
importFrom(tibble,as_tibble)
119119
importFrom(tibble,new_tibble)
120+
importFrom(tibble,validate_tibble)
120121
importFrom(tidyr,unnest)
121122
importFrom(tidyselect,eval_select)
122123
importFrom(tidyselect,starts_with)

R/grouped_epi_archive.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ grouped_epi_archive =
186186
#' object. See the documentation for the wrapper function [`epix_slide()`] for
187187
#' details.
188188
#' @importFrom data.table key address rbindlist setDF
189-
#' @importFrom tibble as_tibble new_tibble
189+
#' @importFrom tibble as_tibble new_tibble validate_tibble
190190
#' @importFrom dplyr group_by groups
191191
#' @importFrom rlang !! !!! enquo quo_is_missing enquos is_quosure sym syms
192192
#' env missing_arg
@@ -294,7 +294,7 @@ grouped_epi_archive =
294294
res[[new_col]] <- list(comp_value)
295295

296296
# Convert the list to a tibble all at once for speed.
297-
return(new_tibble(res))
297+
return(validate_tibble(new_tibble(res)))
298298
}
299299

300300
# If `f` is missing, interpret ... as an expression for tidy evaluation

0 commit comments

Comments
 (0)