Skip to content

Commit

Permalink
fixed error when calling scripts with variables and not values as par…
Browse files Browse the repository at this point in the history
…ameters
  • Loading branch information
D-Maar authored Jun 17, 2024
1 parent 27e26c4 commit c511552
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@ check_call_config <- function(mc, variable ,standards, dim = 1, check_var = FALS
print(\"must be numeric input\")) ")))
}

if(!isFALSE(check_var)) checkmate::qassert(value,check_var)
if(!isFALSE(check_var)){
if (class(value) == "language" | class(value) == "call") value <- eval(value, envir = parent.frame(2L))
checkmate::qassert(value,check_var)

} else{
value <- unlist(standards[which(names(standards) == variable)])
Expand Down

0 comments on commit c511552

Please sign in to comment.