tests/testthat/_snaps/select-args.md

warns on invalid input

Code
  select_args_text(sum, "-xlab:", topic)
Condition
  Warning:
  @inheritDotsParam failed in topic "test".
  Caused by error in `parse()`:
  ! <text>:2:0: unexpected end of input
  1: -xlab:
     ^
Output
  character(0)
Code
  select_args_text(sum, "\"a\"", topic)
Condition
  Warning:
  @inheritDotsParam failed in topic "test".
  Caused by error in `select_check()`:
  ! Argument specification must evaluate to a numeric vector
  Problem in `"a"`
Output
  character(0)
Code
  select_args_text(function(x, y, z) { }, "-x:z", topic)
Condition
  Warning:
  @inheritDotsParam failed in topic "test".
  Caused by error:
  ! Argument specification must be all positive or all negative, not a mixture
  i Problem in `-x:z`
Output
  character(0)


Try the roxygen2 package in your browser

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

roxygen2 documentation built on Dec. 9, 2022, 1:09 a.m.