create_ti_method_definition {dynwrap} | R Documentation |
The local method definition file describes a method that is runnable on the local system.
See vignette("create_ti_method_definition", "dynwrap")
for a tutorial on how to create a containerized TI method.
create_ti_method_definition(definition, script, return_function = TRUE)
definition |
A definition, see |
script |
Location of the script that will be executed. Has to contain a #! |
return_function |
Whether to return a function that allows you to override the default parameters, or just return the method meta data as is. |
A function that can be used to adapt the parameters of the method. This functions returns a list containing all metadata of the method, and can be used to infer a trajectory
# See the vignette "create_ti_method_definition" to get a good idea on how
# to use this function.
# create a definition.yaml file and a run.R/py script.
# method <- create_ti_method_definition("definition.yml", "run.R")
# trajectory <- infer_trajectory(example_dataset, method(), verbose = TRUE)