Skip to content

Commit

Permalink
fix get_filter_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
gogonzo committed Aug 8, 2024
1 parent df87600 commit 1b02437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/FilteredData-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ eval_expr_with_msg <- function(expr, env) {
error = function(e) {
stop(
sprintf(
"Call execution failed:\n - call:\n %s\n - message:\n %s ",
"Filter call execution failed:\n - call:\n %s\n - message:\n %s ",
deparse1(x, collapse = "\n"), e
)
)
Expand Down
9 changes: 3 additions & 6 deletions R/filter_panel_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,9 @@ clear_filter_states <- function(datasets, force = FALSE) {
#' @export
#'
get_filter_expr <- function(datasets, datanames = datasets$datanames()) {
checkmate::assert_character(datanames, min.len = 1, any.missing = FALSE)
stopifnot(
is(datasets, "FilteredData"),
all(datanames %in% datasets$datanames())
)

checkmate::check_class(datasets, "FilteredData")
checkmate::assert_character(datanames, any.missing = FALSE)
checkmate::assert_subset(datanames, datasets$datanames())
paste(
unlist(lapply(
datanames,
Expand Down

0 comments on commit 1b02437

Please sign in to comment.