CRAN Package Check Results for Maintainer ‘Cai-qing YANG <yangcq_ivy at 163.com>’

Last updated on 2024-11-08 07:50:56 CET.

Package ERROR NOTE OK
NicheBarcoding 2 2 9

Package NicheBarcoding

Current CRAN status: ERROR: 2, NOTE: 2, OK: 9

Version: 1.0
Check: dependencies in R code
Result: NOTE Namespace in Imports field not imported from: ‘rJava’ All declared Imports should be used. Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [23s/24s] Running the tests in ‘tests/testthat.R’ failed. Last 13 lines of output: 30: tryCatch(withCallingHandlers({ eval(code, test_env) if (!handled && !is.null(test)) { skip_empty() }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) { }) 31: test_code(test = NULL, code = exprs, env = env, default_reporter = StopReporter$new()) 32: source_file(path, env = env(env), desc = desc, error_call = error_call) 33: FUN(X[[i]], ...) 34: lapply(test_paths, test_one_file, env = env, desc = desc, error_call = error_call) 35: doTryCatch(return(expr), name, parentenv, handler) 36: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 37: tryCatchList(expr, classes, parentenv, handlers) 38: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 39: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, error_call = error_call)) 40: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, error_call = error_call) 41: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel) 42: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 43: test_check("NicheBarcoding") An irrecoverable exception occurred. R is aborting now ... Flavor: r-release-macos-arm64

Version: 1.0
Check: tests
Result: ERROR Running 'testthat.R' [204s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(NicheBarcoding) > > test_check("NicheBarcoding") Loading required namespace: rJava Generating the pseudo present points ...... >>> 1/24 Lasiocampidae_Gastropacha_quercifolia >>> 2/24 Lasiocampidae_Dendrolimus_punctatus >>> 3/24 Lasiocampidae_Alompra_ferruginea >>> 4/24 Lasiocampidae_Paralebeda_femorata >>> 5/24 Lasiocampidae_Odonestis_pruni >>> 6/24 Lasiocampidae_Dendrolimus_superans >>> 7/24 Lasiocampidae_Gastropacha_populifolia >>> 8/24 Lasiocampidae_Dendrolimus_tabulaeformis >>> 9/24 Lasiocampidae_Trabala_vishnou >>> 10/24 Lasiocampidae_Dendrolimus_kikuchii >>> 11/24 Lasiocampidae_Euthrix_laeta >>> 12/24 Lasiocampidae_Malacosoma_neustria >>> 13/24 Lasiocampidae_Euthrix_isocyma >>> 14/24 Lasiocampidae_Euthrix_inobtrusa >>> 15/24 Lasiocampidae_Paralebeda_lucifuga >>> 16/24 Lasiocampidae_Radhica_puana >>> 17/24 Lasiocampidae_Micropacha_gejra >>> 18/24 Lasiocampidae_Syrastrena_sumatrana >>> 19/24 Lasiocampidae_Streblote_igniflua >>> 20/24 Lasiocampidae_Kunugia_undans >>> 21/24 Lasiocampidae_Odontocraspis_hasora >>> 22/24 Lasiocampidae_Cosmotriche_inexperta >>> 23/24 Lasiocampidae_Estigena_philippinensis >>> 1/2 Lasiocampidae_Gastropacha_quercifolia 'nperm' >= set of all permutations: complete enumeration. Set of permutations < 'minperm'. Generating entire set. [ FAIL 1 | WARN 2 | SKIP 0 | PASS 49 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-NBSI2.R:42:3'): tests of different parameter combinations ────── Error in `pseudo.present.points(prese.lonlat[, 3:5], 10, lon.mean, lat.mean, en.vir, map = F)`: The location of Lasiocampidae_Trabala_vishnou must be re-confirmed! Backtrace: ▆ 1. └─NicheBarcoding::NBSI2(...) at test-NBSI2.R:42:3 2. └─NicheBarcoding::pseudo.present.points(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 49 ] Error: Test failures Execution halted Flavor: r-release-windows-x86_64