Error(s) in re-building vignettes:
  ...
--- re-building 'alm.Rmd' using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
greybox
 --- call from context --- 
vcov.alm(object)
 --- call from argument --- 
if (class(vcovMatrixTry) == "try-error") {
    warning(paste0("Choleski decomposition of covariance matrix failed, so we had to revert to the simple inversion.\n", 
        "The estimate of the covariance matrix of parameters might be inaccurate."), 
        call. = FALSE)
    vcovMatrix <- try(solve(matrixXreg, diag(nVariables), tol = 1e-20), 
        silent = TRUE)
    if (class(vcovMatrix) == "try-error") {
        warning(paste0("Sorry, but the covariance matrix is singular, so we could not invert it.\n", 
            "We failed to produce the covariance matrix of parameters."), 
            call. = FALSE)
        vcovMatrix <- diag(1e+100, nVariables)
    }
} else {
    vcovMatrix <- vcovMatrixTry
}
 --- R stacktrace ---
where 1: vcov.alm(object)
where 2: vcov(object)
where 3: diag(vcov(object))
where 4: confint.alm(object, level = level)
where 5: confint(object, level = level)
where 6: summary.alm(ourModel)
where 7: summary(ourModel)
where 8: eval(expr, envir, enclos)
where 9: eval(expr, envir, enclos)
where 10: withVisible(eval(expr, envir, enclos))
where 11: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 12: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 13: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 14: evaluate_call(expr, parsed$src[[i]], envir = envir, enclos = enclos, 
    debug = debug, last = i == length(out), use_try = stop_on_error != 
        2L, keep_warning = keep_warning, keep_message = keep_message, 
    output_handler = output_handler, include_timing = include_timing)
where 15: evaluate::evaluate(...)
where 16: evaluate(code, envir = env, new_device = FALSE, keep_warning = !isFALSE(options$warning), 
    keep_message = !isFALSE(options$message), stop_on_error = if (options$error && 
        options$include) 0L else 2L, output_handler = knit_handlers(options$render, 
        options))
where 17: in_dir(input_dir(), evaluate(code, envir = env, new_device = FALSE, 
    keep_warning = !isFALSE(options$warning), keep_message = !isFALSE(options$message), 
    stop_on_error = if (options$error && options$include) 0L else 2L, 
    output_handler = knit_handlers(options$render, options)))
where 18: block_exec(params)
where 19: call_block(x)
where 20: process_group.block(group)
where 21: process_group(group)
where 22: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group), 
    error = function(e) {
        setwd(wd)
        cat(res, sep = "\n", file = output %n% "")
        message("Quitting from lines ", paste(current_lines(i), 
            collapse = "-"), " (", knit_concord$get("infile"), 
            ") ")
    })
where 23: process_file(text, output)
where 24: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, 
    encoding = encoding)
where 25: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 26: vweave_rmarkdown(...)
where 27: engine$weave(file, quiet = quiet, encoding = enc)
where 28: doTryCatch(return(expr), name, parentenv, handler)
where 29: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 30: tryCatchList(expr, classes, parentenv, handlers)
where 31: 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)
    }
}, error = function(e) {
    OK <<- FALSE
    message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s", 
        file, conditionMessage(e)))
})
where 32: tools:::.buildOneVignette("alm.Rmd", "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/greybox.Rcheck/vign_test/greybox", 
    TRUE, FALSE, "alm", "UTF-8", "/tmp/RtmpzC2UVx/file7e8e10968e8.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (object, ...) 
{
    iOrderNone <- is.null(object$call$i) || (object$call$i == 
        0)
    interceptIsNeeded <- any(names(coef(object)) == "(Intercept)")
    if (iOrderNone & any(object$distribution == c("dlnorm", "dbcnorm", 
        "plogis", "pnorm"))) {
        matrixXreg <- object$data[object$subset, -1, drop = FALSE]
        if (interceptIsNeeded) {
            matrixXreg <- cbind(1, matrixXreg)
            colnames(matrixXreg)[1] <- "(Intercept)"
        }
        nVariables <- ncol(matrixXreg)
        matrixXreg <- crossprod(matrixXreg)
        vcovMatrixTry <- try(chol2inv(chol(matrixXreg)), silent = TRUE)
        if (class(vcovMatrixTry) == "try-error") {
            warning(paste0("Choleski decomposition of covariance matrix failed, so we had to revert to the simple inversion.\n", 
                "The estimate of the covariance matrix of parameters might be inaccurate."), 
                call. = FALSE)
            vcovMatrix <- try(solve(matrixXreg, diag(nVariables), 
                tol = 1e-20), silent = TRUE)
            if (class(vcovMatrix) == "try-error") {
                warning(paste0("Sorry, but the covariance matrix is singular, so we could not invert it.\n", 
                  "We failed to produce the covariance matrix of parameters."), 
                  call. = FALSE)
                vcovMatrix <- diag(1e+100, nVariables)
            }
        }
        else {
            vcovMatrix <- vcovMatrixTry
        }
        vcov <- object$scale^2 * vcovMatrix
        rownames(vcov) <- colnames(vcov) <- names(coef(object))
    }
    else if (iOrderNone & (object$distribution == "dnorm")) {
        matrixXreg <- object$data[object$subset, -1, drop = FALSE]
        if (interceptIsNeeded) {
            matrixXreg <- cbind(1, matrixXreg)
            colnames(matrixXreg)[1] <- "(Intercept)"
        }
        matrixXreg <- crossprod(matrixXreg)
        vcovMatrixTry <- try(chol2inv(chol(matrixXreg)), silent = TRUE)
        if (class(vcovMatrixTry) == "try-error") {
            warning(paste0("Choleski decomposition of covariance matrix failed, so we had to revert to the simple inversion.\n", 
                "The estimate of the covariance matrix of parameters might be inaccurate."), 
                call. = FALSE)
            vcovMatrix <- try(solve(matrixXreg, diag(nVariables), 
                tol = 1e-20), silent = TRUE)
            if (class(vcovMatrix) == "try-error") {
                warning(paste0("Sorry, but the covariance matrix is singular, so we could not invert it.\n", 
                  "We failed to produce the covariance matrix of parameters."), 
                  call. = FALSE)
                vcovMatrix <- diag(1e+100, nVariables)
            }
        }
        else {
            vcovMatrix <- vcovMatrixTry
        }
        vcov <- sigma(object)^2 * vcovMatrix
        rownames(vcov) <- colnames(vcov) <- names(coef(object))
    }
    else {
        newCall <- object$call
        if (interceptIsNeeded) {
            newCall$formula <- as.formula(paste0(all.vars(newCall$formula)[1], 
                "~."))
        }
        else {
            newCall$formula <- as.formula(paste0(all.vars(newCall$formula)[1], 
                "~.-1"))
        }
        newCall$data <- object$data
        newCall$subset <- object$subset
        newCall$distribution <- object$distribution
        newCall$ar <- object$call$ar
        newCall$i <- object$call$i
        newCall$parameters <- coef(object)
        newCall$fast <- TRUE
        if (any(object$distribution == c("dchisq", "dt"))) {
            newCall$df <- object$other$df
        }
        else if (object$distribution == "dnbinom") {
            newCall$size <- object$other$size
        }
        else if (object$distribution == "dalaplace") {
            newCall$alpha <- object$other$alpha
        }
        else if (object$distribution == "dfnorm") {
            newCall$sigma <- object$other$sigma
        }
        else if (object$distribution == "dbcnorm") {
            newCall$lambda <- object$other$lambda
        }
        newCall$vcovProduce <- TRUE
        newCall$occurrence <- object$occurrence
        vcov <- eval(newCall)$vcov
        if (!is.matrix(vcov)) {
            vcov <- as.matrix(vcov)
            colnames(vcov) <- rownames(vcov)
        }
    }
    return(vcov)
}
<bytecode: 0x6cec358>
<environment: namespace:greybox>
 --- function search by body ---
Function vcov.alm in namespace greybox has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1
--- re-building 'greybox.Rmd' using rmarkdown
Package "greybox", v0.5.6 loaded.
--- finished re-building 'greybox.Rmd'

--- re-building 'maUsingGreybox.Rmd' using rmarkdown
--- finished re-building 'maUsingGreybox.Rmd'

--- re-building 'ro.Rmd' using rmarkdown
--- finished re-building 'ro.Rmd'

SUMMARY: processing the following file failed:
  'alm.Rmd'

Error: Vignette re-building failed.
Execution halted