tests/testthat/_snaps/orbital.md

orbital errors on non-trained workflow

Code
  orbital(wf_spec)
Condition
  Error in `orbital()`:
  ! `x` must be a fully trained <workflow>.

orbital errors untrained recipe

Code
  orbital(rec_spec)
Condition
  Error in `orbital()`:
  ! recipe must be fully trained.

orbital errors on non-trained parsnip

Code
  orbital(lm_spec)
Condition
  Error in `orbital()`:
  ! `x` must be fitted model.

orbital errors nicely on post-processing

Code
  orbital(wf_fit)
Condition
  Error in `orbital()`:
  ! post-processing is not yet supported in orbital.

orbital errors on wrong input

Code
  orbital(lm(mpg ~ ., data = mtcars))
Condition
  Error in `orbital()`:
  ! Is not implemented for a <lm> object.

orbital printing works

Code
  orbital(wf_fit)
Message

  -- orbital Object --------------------------------------------------------------
  * cyl = (cyl - 6.1875) / 1.785922
  * disp = (disp - 230.7219) / 123.9387
  * hp = (hp - 146.6875) / 68.56287
  * drat = (drat - 3.596562) / 0.5346787
  * wt = (wt - 3.21725) / 0.9784574
  * qsec = (qsec - 17.84875) / 1.786943
  * vs = (vs - 0.4375) / 0.5040161
  * am = (am - 0.40625) / 0.4989909
  * gear = (gear - 3.6875) / 0.7378041
  * carb = (carb - 2.8125) / 1.6152
  * .pred = 20.09062 + (cyl * -0.199024) + (disp * 1.652752) + (hp * -1.472 ...
  --------------------------------------------------------------------------------
  11 equations in total.
Code
  print(orbital(wf_fit), digits = 2)
Message

  -- orbital Object --------------------------------------------------------------
  * cyl = (cyl - 6.2) / 1.8
  * disp = (disp - 230) / 120
  * hp = (hp - 150) / 69
  * drat = (drat - 3.6) / 0.53
  * wt = (wt - 3.2) / 0.98
  * qsec = (qsec - 18) / 1.8
  * vs = (vs - 0.44) / 0.5
  * am = (am - 0.41) / 0.5
  * gear = (gear - 3.7) / 0.74
  * carb = (carb - 2.8) / 1.6
  * .pred = 20 + (cyl * -0.2) + (disp * 1.7) + (hp * -1.5) + (drat * 0.42) ...
  --------------------------------------------------------------------------------
  11 equations in total.
Code
  print(orbital(wf_fit), truncate = FALSE)
Message

  -- orbital Object --------------------------------------------------------------
  * cyl = (cyl - 6.1875) / 1.785922
  * disp = (disp - 230.7219) / 123.9387
  * hp = (hp - 146.6875) / 68.56287
  * drat = (drat - 3.596562) / 0.5346787
  * wt = (wt - 3.21725) / 0.9784574
  * qsec = (qsec - 17.84875) / 1.786943
  * vs = (vs - 0.4375) / 0.5040161
  * am = (am - 0.40625) / 0.4989909
  * gear = (gear - 3.6875) / 0.7378041
  * carb = (carb - 2.8125) / 1.6152
  * .pred = 20.09062 + (cyl * -0.199024) + (disp * 1.652752) + (hp * -1.472876) +
  (drat * 0.4208515) + (wt * -3.635267) + (qsec * 1.467153) + (vs * 0.1601576) +
  (am * 1.25757) + (gear * 0.4835664) + (carb * -0.322102)
  --------------------------------------------------------------------------------
  11 equations in total.


Try the orbital package in your browser

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

orbital documentation built on April 3, 2025, 8:47 p.m.