Skip to content

Commit

Permalink
chore: #1974 fix parsing issue that caused vignettes to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Jun 27, 2023
1 parent 80bf09d commit d1e92cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/call_derivation.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ call_derivation <- function(dataset = NULL, derivation, variable_params, ...) {
}

all_params <- union(unlist(map(variable_params, names)), names(fixed_params))
assert_function(deparse(substitute(derivation)), all_params)
assert_function(derivation, all_params)

for (i in seq_along(variable_params)) {
fixed_params_ <- fixed_params[names(fixed_params) %notin% names(variable_params[[i]])]
Expand Down
1 change: 1 addition & 0 deletions R/globals.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ globalVariables(c(
"VAR_CHECK",
"TERM",
"SRCVAR",
"TERMID",
"TERMNAME",
"TERM_NAME_ID",
"TERM_UPPER",
Expand Down
2 changes: 1 addition & 1 deletion R/slice_derivation.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ slice_derivation <- function(dataset,
assert_function(derivation, params = c("dataset"))
assert_s3_class(args, "params", optional = TRUE)
if (!is.null(args)) {
assert_function(deparse(substitute(derivation)), names(args))
assert_function(derivation, names(args))
}
slices <- list2(...)
assert_list_of(slices, "derivation_slice")
Expand Down

0 comments on commit d1e92cc

Please sign in to comment.