Last updated on 2024-06-13 05:59:04 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.7.1 | 2.07 | 36.25 | 38.32 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.7.1 | 1.62 | 23.19 | 24.81 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.7.1 | 49.91 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 0.7.1 | 58.66 | OK | |||
r-devel-windows-x86_64 | 0.7.1 | 3.00 | 49.00 | 52.00 | OK | |
r-patched-linux-x86_64 | 0.7.1 | 2.46 | 34.37 | 36.83 | OK | |
r-release-linux-x86_64 | 0.7.1 | 2.19 | 34.58 | 36.77 | OK | |
r-release-macos-arm64 | 0.7.1 | 24.00 | OK | |||
r-release-macos-x86_64 | 0.7.1 | 52.00 | OK | |||
r-release-windows-x86_64 | 0.7.1 | 3.00 | 49.00 | 52.00 | OK | |
r-oldrel-macos-arm64 | 0.7.1 | 26.00 | OK | |||
r-oldrel-macos-x86_64 | 0.7.1 | 36.00 | OK | |||
r-oldrel-windows-x86_64 | 0.7.1 | 3.00 | 73.00 | 76.00 | OK |
Version: 0.7.1
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'dplyr', 'haven', 'testthat', 'tibble', 'tidyr', 'vctrs'
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.7.1
Check: examples
Result: ERROR
Running examples in ‘fauxnaif-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: na_if_in
> ### Title: Convert values to NA
> ### Aliases: na_if_in na_if_not
>
> ### ** Examples
>
> x <- sample(c(1:5, 99))
> # We can replace 99...
> # ... explicitly
> na_if_in(x, 99)
[1] 1 4 3 NA 2 5
> # ... by specifying values to keep
> na_if_not(x, 1:5)
[1] 1 4 3 NA 2 5
> # ... or by using a formula
> na_if_in(x, ~ . > 5)
[1] 1 4 3 NA 2 5
>
> messy_string <- c("abc", "", "def", "NA", "ghi", 42, "jkl", "NULL", "mno")
> # We can replace unwanted values...
> # ... one at a time
> clean_string <- na_if_in(messy_string, "")
> clean_string <- na_if_in(clean_string, "NA")
> clean_string <- na_if_in(clean_string, 42)
> clean_string <- na_if_in(clean_string, "NULL")
> clean_string
[1] "abc" NA "def" NA "ghi" NA "jkl" NA "mno"
> # ... or all at once
> na_if_in(messy_string, "", "NA", "NULL", 1:100)
[1] "abc" NA "def" NA "ghi" NA "jkl" NA "mno"
> na_if_in(messy_string, c("", "NA", "NULL", 1:100))
[1] "abc" NA "def" NA "ghi" NA "jkl" NA "mno"
> na_if_in(messy_string, list("", "NA", "NULL", 1:100))
[1] "abc" NA "def" NA "ghi" NA "jkl" NA "mno"
> # ... or using a clever formula
> grepl("[a-z]{3,}", messy_string)
[1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE
> na_if_not(messy_string, ~ grepl("[a-z]{3,}", .))
[1] "abc" NA "def" NA "ghi" NA "jkl" NA "mno"
>
> # na_if_in() is particularly useful inside dplyr::mutate
> library(dplyr)
Error in library(dplyr) : there is no package called ‘dplyr’
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.7.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [0s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
Error in library(testthat) : there is no package called 'testthat'
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.7.1
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘fauxnaif.Rmd’ using rmarkdown
Error: processing vignette 'fauxnaif.Rmd' failed with diagnostics:
Printing 'tibble' without 'tibble' package available
--- failed re-building ‘fauxnaif.Rmd’
SUMMARY: processing the following file failed:
‘fauxnaif.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc