Package: ipsecr Check: dependencies in R code New result: NOTE Missing objects imported by ':::' calls: ‘secr:::detectorcode’ ‘secr:::parnames’ ‘secr:::stdform’ Package: ipsecr Check: examples New result: ERROR Running examples in ‘ipsecr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot.ipsecr > ### Title: Plot Detection Functions > ### Aliases: plot.ipsecr > ### Keywords: hplot > > ### ** Examples > > > plot (ipsecrdemo, xval = 0:100, ylim = c(0, 0.4)) Error in `[.data.frame`(predicted, secr:::parnames(x$detectfn), "estimate") : object 'parnames' not found Calls: plot -> plot.ipsecr -> gline -> [ -> [.data.frame Execution halted Package: ipsecr Check: tests New result: ERROR Running ‘testthat.R’ [9s/9s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > > # to run manually > # test_dir("/Density secr 4.5/ipsecr/tests") > > test_check("ipsecr") Loading required package: ipsecr Loading required package: secr This is secr 5.4.0. For overview type ?secr This is ipsecr 1.4.4. For overview type ?ipsecr Checking data Saving _problems/test-ipsecr-32.R Saving _problems/test-nontarget-26.R Reading layer `OVforest' from data source `/home/hornik/tmp/CRAN_recheck/Library/secr/extdata/OVforest.shp' using driver `ESRI Shapefile' Simple feature collection with 3 features and 1 field Geometry type: MULTIPOLYGON Dimension: XY Bounding box: xmin: 2674402 ymin: 5982130 xmax: 2675402 ymax: 5983130 Projected CRS: NZGD49 / New Zealand Map Grid Saving _problems/test-proxy-75.R Saving _problems/test-simCH-23.R [ FAIL 4 | WARN 0 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-ipsecr.R:31:1'): (code run outside of `test_that()`) ─────────── Error in `ipsecr.fit(ch, detectfn = "HHN", mask = msk, ncores = 1, verbose = TRUE, details = list(var.nsim = 500, boxsize1 = 0.3, dev.max = c(0.005, 0.005)))`: object 'stdform' not found Backtrace: ▆ 1. └─ipsecr::ipsecr.fit(...) at test-ipsecr.R:31:1 ── Error ('test-nontarget.R:19:1'): (code run outside of `test_that()`) ──────── Error in `simCH(traps = trs, popn = pop, detectfn = 14, detparmat = detparmat, noccasions = 5, NT = 0.5, details = list(nontargettype = "exclusive"))`: object 'detectorcode' not found Backtrace: ▆ 1. └─ipsecr::simCH(...) at test-nontarget.R:19:1 ── Error ('test-proxy.R:74:5'): plotProxy means match ────────────────────────── Error in `simCH(traps, pop, detectfn, detparmat, noccasions)`: object 'detectorcode' not found Backtrace: ▆ 1. └─ipsecr::plotProxy(...) at test-proxy.R:74:5 2. └─base::apply(combo, 1, onecombo) 3. └─ipsecr (local) FUN(newX[, i], ...) 4. └─ipsecr::simCH(traps, pop, detectfn, detparmat, noccasions) ── Error ('test-simCH.R:17:1'): (code run outside of `test_that()`) ──────────── Error in `simCH(traps = trs, popn = pop, detectfn = 14, detparmat = detparmat, noccasions = 5, NT = 0)`: object 'detectorcode' not found Backtrace: ▆ 1. └─ipsecr::simCH(...) at test-simCH.R:17:1 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 12 ] Error: ! Test failures. Execution halted Package: openCR Check: dependencies in R code New result: NOTE Missing object imported by a ':::' call: ‘secr:::getuserdistnames’