tests/testthat/_snaps/trans.md

as.transform generates informative error

Code
  as.transform(1)
Condition
  Error in `as.transform()`:
  ! `1` must be a character vector or a transformer object
Code
  as.transform("x")
Condition
  Error in `as.transform()`:
  ! Could not find any function named `transform_x()` or `x_trans()`

trans has useful print method

Code
  new_transform("test", transform = identity, inverse = identity)
Output
  Transformer: test [-Inf, Inf]


Try the scales package in your browser

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

scales documentation built on July 4, 2024, 1:11 a.m.