Yu-Group/simChef

Argument partial matching bug - multiple arguments beginning with `rmd_` in `Evaluator$initialize()` and `Visualizer$initialize()`

tiffanymtang opened this issue · 0 comments

In Evaluator$initialize() and Visualizer$initialize(), there are two arguments that begin with rmd_ (i.e., rmd_options and rmd_show), so if eval_fun or viz_fun take in an argument like rm, then the current implementation of make_initialize_arg_list() does not catch this and returns an error due to multiple arguments matching.

Example:

eval_fun <- function(x, ...) x
create_evaluator(eval_fun, "Evaluator", rm = TRUE)