Learn R Programming

dynwrap (version 1.2.1)

create_ti_method_definition: Create a TI method from a local method definition file

Description

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.

Usage

create_ti_method_definition(definition, script, return_function = TRUE)

Arguments

definition

A definition, see definition()

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.

Value

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

Examples

Run this code
# NOT RUN {
method <- create_ti_method_definition(
  system.file("examples/script/definition.yml", package = "dynwrap"),
  system.file("examples/script/run.R", package = "dynwrap")
)
trajectory <- infer_trajectory(example_dataset, method())
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab