Last updated on 2025-08-23 03:49:35 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-fedora-gcc | 1.0.0 | 112.49 | OK | |||
r-release-macos-x86_64 | 1.0.0 | 74.00 | ERROR |
Version: 1.0.0
Check: tests
Result: ERROR
Running βtestthat.Rβ [2s/2s]
Running the tests in βtests/testthat.Rβ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(letsRept)
letsRept 1.0.0 loaded π¦ π π π’
Please cite both letsRept and The Reptile Database when using this package.
Run citation("letsRept") for details.
>
> test_check("letsRept")
objc[19800]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
objc[19800]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
objc[19801]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
objc[19801]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
objc[19908]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
objc[19908]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
objc[19905]: +[NSNumber initialize] may have been in progress in another thread when fork() was called.
objc[19905]: +[NSNumber initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
col1 col2
-----------
[ FAIL 2 | WARN 3 | SKIP 7 | PASS 3 ]
ββ Skipped tests (7) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β’ On CRAN (7): 'test-reptAdvancedSearch.R:2:3', 'test-reptCompare.R:2:3',
'test-reptRefs.R:2:3', 'test-reptSearch.R:2:3', 'test-reptSpecies.R:2:3',
'test-reptStats.R:2:3', 'test-reptSynonyms.R:2:3'
ββ Failed tests ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββ Failure ('test-reptSplitCheck.R:13:3'): reptSplitCheck returns expected output ββ
nrow(result) is not strictly more than 0. Difference: 0
ββ Error ('test-reptSync.R:4:3'): reptSync returns expected output βββββββββββββ
Error in `if (nrow(synSample) > 0) {
ambiguity_results <- safeParallel(1:nrow(synSample), FUN = function(i) {
spp_syn <- reptSynonyms(reptSpecies(synSample$url[i],
getLink = TRUE, showProgress = FALSE, cores = cores),
cores = cores, showProgress = FALSE)
synonyms <- spp_syn$species[synSample$query[i] == spp_syn$synonyms]
if (length(synonyms) == 1) {
RDB_new <- synonyms
status_new <- "updated"
}
else if (length(synonyms) > 1) {
RDB_new <- paste(synonyms, collapse = "; ")
status_new <- "ambiguous"
}
else {
RDB_new <- "not_found"
status_new <- "not_found"
}
list(query = synSample$query[i], RDB_new = RDB_new, status_new = status_new)
}, cores = cores, showProgress = showProgress)
ambiguity_df <- do.call(rbind, lapply(ambiguity_results,
function(res) {
data.frame(query = res$query, RDB = res$RDB_new,
status = res$status_new, stringsAsFactors = FALSE)
}))
for (i in 1:nrow(ambiguity_df)) {
df$RDB[df$query == ambiguity_df$query[i]] <- ambiguity_df$RDB[i]
df$status[df$query == ambiguity_df$query[i]] <- ambiguity_df$status[i]
}
}`: argument is of length zero
Backtrace:
β
1. ββletsRept::reptSync(x = query, cores = 2, showProgress = FALSE) at test-reptSync.R:4:3
[ FAIL 2 | WARN 3 | SKIP 7 | PASS 3 ]
Error: Test failures
Execution halted
Flavor: r-release-macos-x86_64