CRAN Package Check Results for Package medicalcoder

Last updated on 2025-12-04 02:50:33 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.7.0 24.90 506.92 531.82 OK
r-devel-linux-x86_64-debian-gcc 0.7.0 19.23 377.62 396.85 OK
r-devel-linux-x86_64-fedora-clang 0.7.0 53.00 763.66 816.66 OK
r-devel-linux-x86_64-fedora-gcc 0.7.0 49.00 759.71 808.71 OK
r-devel-windows-x86_64 0.7.0 28.00 461.00 489.00 OK
r-patched-linux-x86_64 0.7.0 26.07 480.58 506.65 OK
r-release-linux-x86_64 0.7.0 24.75 477.56 502.31 OK
r-release-macos-arm64 0.7.0 7.00 168.00 175.00 ERROR
r-release-macos-x86_64 0.7.0 35.00 865.00 900.00 OK
r-release-windows-x86_64 0.7.0 27.00 465.00 492.00 OK
r-oldrel-macos-arm64 0.7.0 8.00 142.00 150.00 ERROR
r-oldrel-macos-x86_64 0.7.0 42.00 988.00 1030.00 OK
r-oldrel-windows-x86_64 0.7.0 27.00 643.00 670.00 OK

Check Details

Version: 0.7.0
Check: tests
Result: ERROR Running ‘test-asserts.R’ [4s/4s] Running ‘test-charlson.R’ [6s/6s] Running ‘test-comorbidities.R’ [1s/1s] Running ‘test-data-frame-tools.R’ [1s/1s] Running ‘test-elixhauser-example.R’ [1s/1s] Running ‘test-elixhauser.R’ [1s/1s] Running ‘test-icd_compact_to_full.R’ [1s/1s] Running ‘test-internal-data.R’ [5s/5s] Running ‘test-is_icd.R’ [10s/10s] Running ‘test-locked-bindings.R’ [2s/2s] Running ‘test-longitudinal-comorbidities.R’ [1s/1s] Running ‘test-longitudinal-pccc-v3.1.R’ [1s/1s] Running ‘test-lookup_icd_codes.R’ [5s/5s] Running the tests in ‘tests/test-lookup_icd_codes.R’ failed. Complete output: > source('utilities.R') > library(medicalcoder) > > # lookup exact vs regex consistency > lx <- lookup_icd_codes(c("E11.9","I50.9"), regex = FALSE) > lf <- lookup_icd_codes(factor(c("E11.9","I50.9")), regex = FALSE) > lr <- lookup_icd_codes(c("^E11\\.9$","^I50\\.9$"), regex = TRUE) > stopifnot( + identical(lx, lf), + all(lx$full_code %in% lr$full_code), + all(lr$full_code %in% lx$full_code) + ) > > # the following gives an error: > # Error in merge.data.frame(x = input, y = matches, all.x = TRUE, by = c(ifelse(regex, : > # negative length vectors are not allowed > m <- tryCatchError(lookup_icd_codes(x = "", regex = TRUE)) *** caught segfault *** address 0x680008000, cause 'invalid permissions' Traceback: 1: merge.data.frame(x = input, y = matches, all.x = TRUE, by = col_order[1:2]) 2: merge(x = input, y = matches, all.x = TRUE, by = col_order[1:2]) 3: lookup_icd_codes(x = "", regex = TRUE) 4: doTryCatch(return(expr), name, parentenv, handler) 5: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 6: tryCatchList(expr, classes, parentenv, handlers) 7: tryCatch(expr, ..., error = function(e) { e}) 8: tryCatchError(lookup_icd_codes(x = "", regex = TRUE)) An irrecoverable exception occurred. R is aborting now ... Flavors: r-release-macos-arm64, r-oldrel-macos-arm64