tests/testthat/_snaps/select-args.md

warns on invalid input

Code
  select_args_text(sum, "-xlab:", topic)
Message
  x In topic 'test': @inheritDotsParam failed.
  Caused by error in `parse()`:
  ! <text>:2:0: unexpected end of input
  1: -xlab:
     ^
Output
  character(0)
Code
  select_args_text(sum, "\"a\"", topic)
Message
  x In topic 'test': @inheritDotsParam failed.
  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)
Message
  x In topic 'test': @inheritDotsParam failed.
  Caused by error:
  ! Argument specification must be all positive or all negative, not a mixture
  i Problem in `-x:z`
Output
  character(0)


r-lib/roxygen2 documentation built on April 21, 2024, 4:36 a.m.