- using R Under development (unstable) (2025-11-05 r88988)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (7)
Debian flang-new version 19.1.7 (7)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘doseminer/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘doseminer’ version ‘0.1.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 ‘doseminer’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [4s/7s] OK
- checking Rd files ... [0s/0s] 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 ... [0s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] ERROR
Running examples in ‘doseminer-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: extract_from_prescription
> ### Title: Extract dosage information from free-text English-language
> ### prescriptions
> ### Aliases: extract_from_prescription
>
> ### ** Examples
>
> extract_from_prescription(example_prescriptions)
Error in `str_replace_all()`:
! `replacement` function must return a vector the same length as the
input (8), not length 1.
Backtrace:
▆
1. ├─doseminer::extract_from_prescription(example_prescriptions)
2. │ └─... %>% ...
3. ├─stringr::str_replace_all(...)
4. │ └─stringr:::check_lengths(string, pattern, replacement)
5. │ └─vctrs::vec_size_common(...)
6. ├─stringr::str_replace_all(...)
7. │ └─stringr:::check_lengths(string, pattern, replacement)
8. │ └─vctrs::vec_size_common(...)
9. ├─stringr::str_replace_all(., "[0-9]+ / week", weekly_to_daily)
10. │ └─stringr:::str_transform_all(string, pattern, replacement)
11. │ └─stringr::str_locate_all(string, pattern)
12. │ └─stringr:::check_lengths(string, pattern)
13. │ └─vctrs::vec_size_common(...)
14. ├─stringr::str_replace_all(...)
15. │ └─stringr:::check_lengths(string, pattern, replacement)
16. │ └─vctrs::vec_size_common(...)
17. ├─stringr::str_replace_all(...)
18. │ └─stringr:::check_lengths(string, pattern, replacement)
19. │ └─vctrs::vec_size_common(...)
20. ├─stringr::str_replace_all(., "(?:every|per) week|weekly", "every 7 days")
21. │ └─stringr:::check_lengths(string, pattern, replacement)
22. │ └─vctrs::vec_size_common(...)
23. ├─stringr::str_replace_all(...)
24. │ └─stringr:::check_lengths(string, pattern, replacement)
25. │ └─vctrs::vec_size_common(...)
26. ├─stringr::str_replace_all(...)
27. │ └─stringr:::check_lengths(string, pattern, replacement)
28. │ └─vctrs::vec_size_common(...)
29. ├─stringr::str_replace_all(...)
30. │ └─stringr:::check_lengths(string, pattern, replacement)
31. │ └─vctrs::vec_size_common(...)
32. ├─stringr::str_replace_all(., "times(?:/| a| per) ?", "/ ")
33. │ └─stringr:::check_lengths(string, pattern, replacement)
34. │ └─vctrs::vec_size_common(...)
35. ├─stringr::str_replace_all(...)
36. │ └─stringi::stri_replace_all_regex(...)
37. └─stringr::str_replace_all(...)
38. └─stringr:::str_transform_all(string, pattern, replacement)
39. └─cli::cli_abort(...)
40. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/3s] OK
Running ‘testthat.R’ [2s/2s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s/12s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘case_study.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘case_study.Rmd’
--- re-building ‘introduction.Rmd’ using rmarkdown
Quitting from introduction.Rmd:84-86 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'introduction.Rmd' failed with diagnostics:
`replacement` function must return a vector the same length as the input
(8), not length 1.
--- failed re-building ‘introduction.Rmd’
SUMMARY: processing the following file failed:
‘introduction.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs