reuseme 0.0.2.9009 #123
Annotations
1 error
Build and check binaries:
reuseme#L1
Check: examples, Result: ERROR
Running examples in ‘reuseme-Ex.R’ failed
The error most likely occurred in:
> ### Name: na_if2
> ### Title: Transform to NA any of the condition
> ### Aliases: na_if2
>
> ### ** Examples
>
> vec <- c(0, 1, 1, 2)
> vec2 <- c("Here", "not", NA, "Here")
> # NA all 2s
> # You can actually use dplyr::na_if() in this case
> dplyr::na_if(vec, 2)
[1] 0 1 1 NA
> # NA all 1 and 2
> na_if2(vec, c(1, 2))
Error in `na_if2()`:
! One of `expr` or `values` must be supplied.
Run `rlang::last_trace()` to see where the error occurred.
Execution halted
Ran 1/1 deferred expressions
|
Loading