Nothing
n
Code
step(1.5)
Condition
Error in `step()`:
! Can't convert from `n` <double> to <integer> due to loss of precision.
* Locations: 1
n
is validatedCode
new_stepper(1)
Condition
Error in `new_stepper()`:
! `n` must be an integer.
rschedule
is validatedCode
new_stepper(rschedule = 1)
Condition
Error in `new_stepper()`:
! `rschedule` must be a <almanac_rschedule>, not the number 1.
Code
(expect_error(vec_arith("+", new_stepper(), 1), class = "vctrs_error_incompatible_op")
)
Output
<error/vctrs_error_incompatible_op>
Error in `vec_arith()`:
! <stepper> + <double> is not permitted
Code
(expect_error(vec_arith("+", 1, new_stepper()), class = "vctrs_error_incompatible_op")
)
Output
<error/vctrs_error_incompatible_op>
Error in `vec_arith()`:
! <double> + <stepper> is not permitted
Code
step(1) %s-% x
Condition
Error in `vec_arith()`:
! <stepper> - <date> is not permitted
Code
vec_ptype2(x, new_stepper())
Condition
Error in `vec_ptype2.almanac_stepper.almanac_stepper()`:
! Can't combine `x` <stepper> and `new_stepper()` <stepper>.
Steppers must have identical rschedules to be coercible.
Code
vec_cast(x, new_stepper())
Condition
Error in `vec_cast.almanac_stepper.almanac_stepper()`:
! Can't convert `x` <stepper> to <stepper>.
Steppers must have identical rschedules to be coercible.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.