tests/testthat/_snaps/run.md

CLI invocation prints a hint before failing

Code
  writeLines(run_cli_app(erroring_app))
Output
  Error: boom
  Execution halted

CLI handles underscored commands

Code
  cat("-- foo-bar --\n")
Output
  -- foo-bar --
Code
  writeLines(kebab_result)
Output
  $cmd
  [1] "foo_bar"

  $foo_bar_flag
  [1] TRUE

Code
  cat("\n-- foo_bar --\n")
Output

  -- foo_bar --
Code
  writeLines(snake_result)
Output
  $cmd
  [1] "foo_bar"

  $foo_bar_flag
  [1] TRUE


Try the Rapp package in your browser

Any scripts or data that you put into this service are public.

Rapp documentation built on June 11, 2026, 5:07 p.m.