Skip to contents

Creates the prompt file, the text of the prompt in inst/mordew/prompts/<name>.md, which the prompt reads, and its test file, from templates.

Usage

add_prompt(name, mordew_wd = get_mordew_wd())

Arguments

name

Name of the prompt.

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_prompt(
  "review_run",
  mordew_wd = path
)
list.files(
  file.path(
    path,
    "R"
  )
)
#> [1] "prompt_review_run.R" "run.R"