Create a TI method wrapper
create_ti_method(id, name = id, parameters = NULL, par_set = NULL, run_fun, plot_fun = NULL, package_loaded = c(), package_required = c(), type = c("algorithm", "algorithm_test", "control", "control_test"), ..., remotes_package = ifelse("dynmethods" %in% rownames(installed.packages()), "dynmethods", "dynwrap"))
| id | A short name for the method, only lowercase characters allowed |
|---|---|
| name | The name of the TI method |
| parameters | A list of parameters, which can be parsed using |
| par_set | A bunch of parameters created by |
| run_fun | A function to run the TI, needs to have 'counts' as its first param. |
| plot_fun | A function to plot the results of a TI, needs to have 'prediction' as its first param. |
| package_loaded | The packages that need to be loaded before executing the method |
| package_required | The packages that need to be installed before executing the method |
| type | The type of TI metod |
| ... | Other information about the wrapper, eg. apt_dependencies |
| remotes_package | Package from which the remote locations of dependencies have to be extracted, eg. |