tests/testthat/_snaps/na_if_in.md

non-vector x produces error

! Input `x` must be coercible to a vector.
x `mean` is of uncoercible class <function>.
! Input `x` must be coercible to a vector.
x `mean` is of uncoercible class <function>.
! Input `x` must be coercible to a vector.
x `lm(1 ~ 1)` is of uncoercible class <lm>.
! Input `x` must be coercible to a vector.
x `lm(1 ~ 1)` is of uncoercible class <lm>.
! Input `x` must be coercible to a vector.
x `~. < 0` is of uncoercible class <formula>.
! Input `x` must be coercible to a vector.
x `~. < 0` is of uncoercible class <formula>.

if x_label is ., use x instead

! Input `x` must be coercible to a vector.
x `x` is of uncoercible class <function>.
! Input `x` must be coercible to a vector.
x `x` is of uncoercible class <function>.

two-sided formula produces error

! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `x ~ . < 1` is a two-sided formula.
! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `x ~ . < 1` is a two-sided formula.

non-coercible argument produces error

! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `lm(1 ~ 1)` is of uncoercible class <lm>.
! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `lm(1 ~ 1)` is of uncoercible class <lm>.

multiple non-coercible arguments produce errors

! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `NULL` is of uncoercible class <NULL>.
x `lm(1 ~ 1)` is of uncoercible class <lm>.
! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `NULL` is of uncoercible class <NULL>.
x `lm(1 ~ 1)` is of uncoercible class <lm>.

no ... produces error

x No values to replace with `NA` specified.
x No values to replace with `NA` specified.

function arguments must return logical vectors

! All function arguments must return a logical vector of length 10 (the same length as `0:9`).
x `min` returns an object of class <integer>.
! All function arguments must return a logical vector of length 10 (the same length as `0:9`).
x `min` returns an object of class <integer>.
! All function arguments must return a logical vector of length 10 (the same length as `0:9`).
x `max` returns an object of class <integer>.
! All function arguments must return a logical vector of length 10 (the same length as `0:9`).
x `max` returns an object of class <integer>.
! All function arguments must return a logical vector of length 5 (the same length as `1:5`).
x `mean` returns an object of class <numeric>.
! All function arguments must return a logical vector of length 5 (the same length as `1:5`).
x `mean` returns an object of class <numeric>.

function arguments must return vectors of the same length as x

! All function arguments must return a logical vector of length 5 (the same length as `1:5`).
x `~TRUE` returns a vector of length 1.
! All function arguments must return a logical vector of length 5 (the same length as `1:5`).
x `~TRUE` returns a vector of length 1.

function arguments can generate multiple errors

! All function arguments must return a logical vector of length 5 (the same length as `1:5`).
x `mean` returns an object of class <numeric>.
x `~TRUE` returns a vector of length 1.
! All function arguments must return a logical vector of length 5 (the same length as `1:5`).
x `mean` returns an object of class <numeric>.
x `~TRUE` returns a vector of length 1.

errors when fauxnaif functions are called in unusual ways

! Input `x` must be coercible to a vector.
x `x` is of uncoercible class <function>.
! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `..1` is of uncoercible class <lm>.
! All function arguments must return a logical vector of length 1 (the same length as `x`).
x `..1` returns an object of class <numeric>.
! All function arguments must return a logical vector of length 1 (the same length as `x`).
x `..` returns an object of class <numeric>.
! All arguments must be coercible to an atomic vector, function, or one-sided formula.
x `..` is of uncoercible class <lm>.
! Input `x` must be coercible to a vector.
x `x` is of uncoercible class <function>.


Try the fauxnaif package in your browser

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

fauxnaif documentation built on Aug. 13, 2022, 1:05 a.m.