tests/testthat/_snaps/compute_scale.md

compute_scale Test 6: error if source_range is supplied, but not target_range

Code
  compute_scale(input, source_range = c(1, 5), min_n = 2)
Condition
  Error in `compute_scale()`:
  ! Argument `target_range` is missing with no default and `source_range` is not missing.
  i Either both or neither arguments should be specified.
Code
  compute_scale(input, target_range = c(0, 100), min_n = 2)
Condition
  Error in `compute_scale()`:
  ! Argument `source_range` is missing with no default and `target_range` is not missing.
  i Either both or neither arguments should be specified.


Try the admiral package in your browser

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

admiral documentation built on June 22, 2024, 9:06 a.m.