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.
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"