Running examples in ‘DLMtool-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: Can
> ### Title: Identify management procedures (MPs) based on data availability
> ### Aliases: Can Cant DLMdiag Needed
> 
> ### ** Examples
> 
> CanMPs <- Can(DLMtool::Cobia)
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
DLMtool
 --- call from context --- 
updateMSE(Data)
 --- call from argument --- 
if (class(tt) == "try-error") {
    fun <- get(as.character(slotTypes[X]))
    if (as.character(slotTypes[X]) == "vector") {
        slot(MSEobj, slots[X]) <- fun("numeric", length = 0)
    }
    else slot(MSEobj, slots[X]) <- fun(0)
}
 --- R stacktrace ---
where 1: updateMSE(Data)
where 2: DLMdiag(Data, "available", timelimit = timelimit, funcs1 = MPs, 
    dev = dev)
where 3: Can(DLMtool::Cobia)

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (MSEobj) 
{
    slots <- slotNames(MSEobj)
    for (X in seq_along(slots)) {
        classDef <- getClassDef(class(MSEobj))
        slotTypes <- classDef@slots
        tt <- try(slot(MSEobj, slots[X]), silent = TRUE)
        if (class(tt) == "try-error") {
            fun <- get(as.character(slotTypes[X]))
            if (as.character(slotTypes[X]) == "vector") {
                slot(MSEobj, slots[X]) <- fun("numeric", length = 0)
            }
            else slot(MSEobj, slots[X]) <- fun(0)
        }
    }
    MSEobj <- RepmissingVal(MSEobj, "Mexp", c(0, 0))
    MSEobj <- RepmissingVal(MSEobj, "LenCV", c(0.08, 0.15))
    MSEobj <- RepmissingVal(MSEobj, "LR5", c(0, 0))
    MSEobj <- RepmissingVal(MSEobj, "LFR", c(0, 0))
    MSEobj <- RepmissingVal(MSEobj, "Rmaxlen", c(1, 1))
    MSEobj <- RepmissingVal(MSEobj, "DR", c(0, 0))
    MSEobj <- RepmissingVal(MSEobj, "Fdisc", c(0, 0))
    MSEobj <- RepmissingVal(MSEobj, "nareas", 2)
    MSEobj
}
<bytecode: 0x5556a47ee218>
<environment: namespace:DLMtool>
 --- function search by body ---
Function updateMSE in namespace DLMtool has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1