Error(s) in re-building vignettes:
  ...
--- re-building ‘SSsimple.Snw’ using Sweave
Loading required package: mvtnorm
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
SSsimple
 --- call from context --- 
SS.sim.tv(F = F, Q = Q, H = H.tv, R = R, length.out = tt, beta0 = beta0)
 --- call from argument --- 
if (class(F) == "list") {
    F.t <- F[[j]]
} else {
    F.t <- F
}
 --- R stacktrace ---
where 1: SS.sim.tv(F = F, Q = Q, H = H.tv, R = R, length.out = tt, beta0 = beta0)
where 2: eval(expr, .GlobalEnv)
where 3: eval(expr, .GlobalEnv)
where 4: withVisible(eval(expr, .GlobalEnv))
where 5: doTryCatch(return(expr), name, parentenv, handler)
where 6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 7: tryCatchList(expr, classes, parentenv, handlers)
where 8: 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 9: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
where 10: evalFunc(ce, options)
where 11: tryCatchList(expr, classes, parentenv, handlers)
where 12: tryCatch(evalFunc(ce, options), finally = {
    cat("\n")
    sink()
})
where 13: driver$runcode(drobj, chunk, chunkopts)
where 14: utils::Sweave(...)
where 15: engine$weave(file, quiet = quiet, encoding = enc)
where 16: doTryCatch(return(expr), name, parentenv, handler)
where 17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 18: tryCatchList(expr, classes, parentenv, handlers)
where 19: 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 20: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/SSsimple.Rcheck/vign_test/SSsimple", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpzXMCx6/file16df49d57451.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (F, H, Q, R, length.out, beta0 = 0) 
{
    if (class(H) == "list") {
        d <- ncol(H[[1]])
        n <- nrow(H[[1]])
    }
    else {
        d <- ncol(H)
        n <- nrow(H)
    }
    params <- .internal.chk.mod.params.short(P0 = NULL, beta0, 
        d, n)
    beta0 <- params$beta0
    T <- length.out
    Beta <- matrix(NA, T, d)
    Z <- matrix(NA, T, n)
    Y <- matrix(NA, T, n)
    for (j in 1:T) {
        if (class(F) == "list") {
            F.t <- F[[j]]
        }
        else {
            F.t <- F
        }
        if (class(H) == "list") {
            H.t <- H[[j]]
        }
        else {
            H.t <- H
        }
        if (class(Q) == "list") {
            Q.t <- Q[[j]]
        }
        else {
            Q.t <- Q
        }
        if (class(R) == "list") {
            R.t <- R[[j]]
        }
        else {
            R.t <- R
        }
        params <- .internal.chk.mod.params(F.t, H.t, Q.t, R.t, 
            P0 = NULL, beta0 = NULL, d, n)
        F.t <- params$F
        H.t <- params$H
        Q.t <- params$Q
        R.t <- params$R
        eta <- t(rmvnorm(1, rep(0, d), Q.t))
        epsilon <- t(rmvnorm(1, rep(0, n), R.t))
        if (j == 1) {
            Beta[j, ] <- F.t %*% beta0 + eta
        }
        else {
            Beta[j, ] <- F.t %*% Beta[j - 1, ] + eta
        }
        Y[j, ] <- H.t %*% Beta[j, ]
        Z[j, ] <- Y[j, ] + epsilon
    }
    return(list(Beta = Beta, Y = Y, Z = Z))
}
<bytecode: 0x558a2619f068>
<environment: namespace:SSsimple>
 --- function search by body ---
Function SS.sim.tv in namespace SSsimple has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1