tests/testthat/_snaps/trans.md

as.trans generates informative error

Code
  as.trans(1)
Condition
  Error in `as.trans()`:
  ! `1` must be a character vector or a transformer object
Code
  as.trans("x")
Condition
  Error in `get()`:
  ! object 'x_trans' of mode 'function' was not found

trans has useful print method

Code
  trans_new("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 Aug. 20, 2022, 1:05 a.m.