- using R Under development (unstable) (2025-12-07 r89119)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.6 (2)
Debian flang version 21.1.6 (2)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘mmequiv/DESCRIPTION’ ... OK
- this is package ‘mmequiv’ version ‘1.0.0’
- 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 ‘mmequiv’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] 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 ... [7s/11s] OK
- checking Rd files ... [0s/1s] 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/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking examples ... [3s/4s] ERROR
Running examples in ‘mmequiv-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: calculate_mme.list
> ### Title: Calculate morphine milligram equivalents (MME) for a single
> ### study participant
> ### Aliases: calculate_mme.list
>
> ### ** Examples
>
> # Recreating example from Adams MCB, et al. 2025 supplement
> # https://links.lww.com/PAIN/C213
> meds_list <- list(
+ list(
+ medication_name = "Morphine (mg)",
+ dose = 5,
+ doses_per_24_hours = 4,
+ days_of_medication = 7
+ ),
+ list(
+ medication_name = "Morphine (mg) LA",
+ dose = 10,
+ doses_per_24_hours = 3,
+ days_of_medication = 30
+ )
+ )
>
> # Using API
> calculate_mme(meds_list, 30, 90)
Error in `httr2::req_perform()`:
! Failed to perform HTTP request.
Caused by error in `curl::curl_fetch_memory()`:
! SSL peer certificate or SSH remote key was not OK [research-mme.wakehealth.edu]:
SSL certificate verification failed: certificate has expired. (CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none)
Backtrace:
▆
1. ├─mmequiv::calculate_mme(meds_list, 30, 90)
2. └─mmequiv:::calculate_mme.list(meds_list, 30, 90)
3. └─httr2::req_perform(req)
4. └─httr2:::handle_resp(req, resp, error_call = error_call)
5. └─rlang::cnd_signal(resp)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [25s/45s] OK
Running ‘spelling.R’ [0s/1s]
Running ‘testthat.R’ [25s/44s]
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [2s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR