Skip to contents

Creates the tool file and its test file from templates.

Usage

add_tool(name, mordew_wd = get_mordew_wd())

Arguments

name

Name of the tool.

mordew_wd

Path to the package, get_mordew_wd() by default.

Value

Nothing: called to write the two files.

Examples

path <- file.path(
  tempfile(),
  "runlog"
)
create_mordew(
  path
)
add_tool(
  "longest_runs",
  mordew_wd = path
)
list.files(
  file.path(
    path,
    "R"
  )
)
#> [1] "run.R"               "tool_longest_runs.R"