* using log directory ‘/data/gannet/ripley/R/packages/tests-devel/cvasi.Rcheck’
* using R Under development (unstable) (2025-02-26 r87827)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
    gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
    GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
* running under: Fedora Linux 40 (Workstation Edition)
* using session charset: UTF-8
* using option ‘--no-stop-on-test-error’
* checking for file ‘cvasi/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘cvasi’ version ‘1.3.1’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘cvasi’ can be installed ... [22s/62s] OK
See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/cvasi-00install.html' for details.
* used C compiler: ‘gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)’
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... [25s/97s] OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking LazyData ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking line endings in C/C++/Fortran sources/headers ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compilation flags used ... OK
* checking compiled code ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... [28s/108s] ERROR
Running examples in ‘cvasi-Ex.R’ failed
The error most likely occurred in:

> ### Name: plot_epx
> ### Title: Plot EPx values
> ### Aliases: plot_epx
> 
> ### ** Examples
> 
> ti <- 0:21
> expo <- abs(0.01*ti + rnorm(length(ti), 0, 0.05))
> exposure <- data.frame(time = ti, conc = expo)
> metsulfuron_epx_mtw <- metsulfuron %>%
+ set_exposure(exposure) %>%
+ epx_mtw(level = 10, factor_cutoff = 1000)
> metsulfuron_epx_mtw
# A tibble: 30 × 5
   window.start window.end endpoint level   EPx
          <dbl>      <dbl> <chr>    <chr> <dbl>
 1            0          7 BM       10     6.98
 2            0          7 r        10     4.73
 3            1          8 BM       10     6.03
 4            1          8 r        10     3.99
 5            2          9 BM       10     5.15
 6            2          9 r        10     3.39
 7            3         10 BM       10     4.73
 8            3         10 r        10     3.07
 9            4         11 BM       10     4.06
10            4         11 r        10     2.63
# ℹ 20 more rows
> plot_epx(EPx_ts = metsulfuron_epx_mtw,
+ exposure_ts = exposure, conc_y_title = "env. concentration [µg/L]")
Error in `dplyr::select()`:
ℹ In argument: `dplyr::matches("window.end", "level")`.
Caused by error in `grep()`:
! NA in coercion to Rboolean
Backtrace:
     â–†
  1. ├─cvasi::plot_epx(...)
  2. │ └─EPx_ts %>% ...
  3. ├─dplyr::select(., !dplyr::matches("window.end", "level"))
  4. ├─dplyr:::select.data.frame(., !dplyr::matches("window.end", "level"))
  5. │ └─tidyselect::eval_select(expr(c(...)), data = .data, error_call = error_call)
  6. │   └─tidyselect:::eval_select_impl(...)
  7. │     ├─tidyselect:::with_subscript_errors(...)
  8. │     │ └─base::withCallingHandlers(...)
  9. │     └─tidyselect:::vars_select_eval(...)
 10. │       └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
 11. │         └─tidyselect:::eval_c(expr, data_mask, context_mask)
 12. │           └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
 13. │             └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
 14. │               └─tidyselect:::eval_bang(expr, data_mask, context_mask)
 15. │                 └─tidyselect:::walk_data_tree(expr[[2]], data_mask, context_mask)
 16. │                   └─tidyselect:::eval_context(expr, context_mask, call = error_call)
 17. │                     ├─tidyselect:::with_chained_errors(...)
 18. │                     │ └─base::withCallingHandlers(...)
 19. │                     └─rlang::eval_tidy(as_quosure(expr, env), context_mask)
 20. ├─dplyr::matches("window.end", "level")
 21. │ └─tidyselect:::flat_map_int(...)
 22. │   └─tidyselect:::map(unname(.x), .fn, ...)
 23. │     └─base::lapply(.x, .f, ...)
 24. │       └─tidyselect (local) FUN(X[[i]], ...)
 25. │         └─base::grep(needle, haystack, ...)
 26. └─base::.handleSimpleError(...)
 27.   └─tidyselect (local) h(simpleError(msg, call))
 28.     └─cli::cli_abort(c(i = msg), call = call, parent = cnd)
 29.       └─rlang::abort(...)
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ... [100s/233s] OK
  Running ‘testthat.R’ [99s/231s]
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [193s/265s] OK
* checking PDF version of manual ... [13s/14s] OK
* checking HTML version of manual ... OK
* checking for non-standard things in the check directory ... OK
* checking for detritus in the temp directory ... OK
* DONE
Status: 1 ERROR