tests/testthat/_snaps/rd-template.md

invalid syntax generates useful warning

Code
  . <- roc_proc_text(rd_roclet(), block)
Message
  x <text>:3: @templateVar requires two parts: a variable name and a value.

templates gives useful error if not found

Code
  roc_proc_text(rd_roclet(), block)
Condition
  Error in `map_chr()`:
  i In index: 1.
  Caused by error:
  ! Can't find template "doesn't-exist"


Try the roxygen2 package in your browser

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

roxygen2 documentation built on June 28, 2024, 9:11 a.m.