Error(s) in re-building vignettes:
  ...
--- re-building ‘markedVignette.Rnw’ using Sweave
Loading required package: lme4
Loading required package: Matrix
Loading required package: parallel
This is marked 1.2.1

Model: CJS

Processing data...

255 capture histories collapsed into 53
Creating design data...

Fitting model

Computing initial parameter estimates

Starting optimization for 2 parameters...
Warning in if (class(nhatend) != "try-error") { :
  the condition has length > 1 and only the first element will be used
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
marked
 --- call from context --- 
solvecov(vcv)
 --- call from argument --- 
if (class(covinv) != "try-error") coll = FALSE else {
    p <- nrow(m)
    cove <- eigen(m, symmetric = TRUE)
    coll <- TRUE
    if (min(cove$values) < 1/cmax) {
        covewi <- diag(p)
        for (i in 1:p) if (cove$values[i] < 1/cmax) 
            covewi[i, i] <- cmax
        else covewi[i, i] <- 1/cove$values[i]
    }
    else covewi <- diag(1/cove$values, nrow = length(cove$values))
    covinv <- cove$vectors %*% covewi %*% t(cove$vectors)
}
 --- R stacktrace ---
where 1: solvecov(vcv)
where 2: doTryCatch(return(expr), name, parentenv, handler)
where 3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 4: tryCatchList(expr, classes, parentenv, handlers)
where 5: tryCatch(expr, error = function(e) {
    call <- conditionCall(e)
    if (!is.null(call)) {
        if (identical(call[[1L]], quote(doTryCatch))) 
            call <- sys.call(-4L)
        dcall <- deparse(call)[1L]
        prefix <- paste("Error in", dcall, ": ")
        LONG <- 75L
        sm <- strsplit(conditionMessage(e), "\n")[[1L]]
        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
        if (is.na(w)) 
            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 
                type = "b")
        if (w > LONG) 
            prefix <- paste0(prefix, "\n  ")
    }
    else prefix <- "Error : "
    msg <- paste0(prefix, conditionMessage(e), "\n")
    .Internal(seterrmessage(msg[1L]))
    if (!silent && isTRUE(getOption("show.error.messages"))) {
        cat(msg, file = outFile)
        .Internal(printDeferredWarnings())
    }
    invisible(structure(msg, class = "try-error", condition = e))
})
where 6: try(solvecov(vcv))
where 7: cjs.hessian(model)
where 8: eval(expr, .GlobalEnv)
where 9: eval(expr, .GlobalEnv)
where 10: withVisible(eval(expr, .GlobalEnv))
where 11: doTryCatch(return(expr), name, parentenv, handler)
where 12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 13: tryCatchList(expr, classes, parentenv, handlers)
where 14: tryCatch(expr, error = function(e) {
    call <- conditionCall(e)
    if (!is.null(call)) {
        if (identical(call[[1L]], quote(doTryCatch))) 
            call <- sys.call(-4L)
        dcall <- deparse(call)[1L]
        prefix <- paste("Error in", dcall, ": ")
        LONG <- 75L
        sm <- strsplit(conditionMessage(e), "\n")[[1L]]
        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
        if (is.na(w)) 
            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 
                type = "b")
        if (w > LONG) 
            prefix <- paste0(prefix, "\n  ")
    }
    else prefix <- "Error : "
    msg <- paste0(prefix, conditionMessage(e), "\n")
    .Internal(seterrmessage(msg[1L]))
    if (!silent && isTRUE(getOption("show.error.messages"))) {
        cat(msg, file = outFile)
        .Internal(printDeferredWarnings())
    }
    invisible(structure(msg, class = "try-error", condition = e))
})
where 15: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
where 16: evalFunc(ce, options)
where 17: tryCatchList(expr, classes, parentenv, handlers)
where 18: tryCatch(evalFunc(ce, options), finally = {
    cat("\n")
    sink()
})
where 19: driver$runcode(drobj, chunk, chunkopts)
where 20: utils::Sweave(...)
where 21: engine$weave(file, quiet = quiet, encoding = enc)
where 22: doTryCatch(return(expr), name, parentenv, handler)
where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 24: tryCatchList(expr, classes, parentenv, handlers)
where 25: tryCatch({
    engine$weave(file, quiet = quiet, encoding = enc)
    setwd(startdir)
    output <- find_vignette_product(name, by = "weave", engine = engine)
    if (!have.makefile && vignette_is_tex(output)) {
        texi2pdf(file = output, clean = FALSE, quiet = quiet)
        output <- find_vignette_product(name, by = "texi2pdf", 
            engine = engine)
    }
    outputs <- c(outputs, output)
}, error = function(e) {
    thisOK <<- FALSE
    fails <<- c(fails, file)
    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", 
        file, conditionMessage(e)))
})
where 26: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/marked.Rcheck/vign_test/marked", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpT31fPo/file44894c830926.rds")

 --- value of length: 2 type: logical ---
[1] TRUE TRUE
 --- function from context --- 
function (m, cmax = 1e+10) 
{
    options(show.error.messages = FALSE)
    covinv <- try(solve(m))
    if (class(covinv) != "try-error") 
        coll = FALSE
    else {
        p <- nrow(m)
        cove <- eigen(m, symmetric = TRUE)
        coll <- TRUE
        if (min(cove$values) < 1/cmax) {
            covewi <- diag(p)
            for (i in 1:p) if (cove$values[i] < 1/cmax) 
                covewi[i, i] <- cmax
            else covewi[i, i] <- 1/cove$values[i]
        }
        else covewi <- diag(1/cove$values, nrow = length(cove$values))
        covinv <- cove$vectors %*% covewi %*% t(cove$vectors)
    }
    options(show.error.messages = TRUE)
    out <- list(inv = covinv, coll = coll)
    out
}
<bytecode: 0x5598125102f0>
<environment: namespace:marked>
 --- function search by body ---
Function solvecov in namespace marked has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1