Error(s) in re-building vignettes:
  ...
--- re-building 'HAC.Rnw' using Sweave
Loading required package: copula
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
HAC
 --- call from context --- 
.margins(X, margins)
 --- call from argument --- 
if (is.null(margins) | (class(X) != "matrix") | (NROW(X) == 1)) {
    X
} else {
    if (length(margins) == 1) {
        X = apply(X, 2, .one.mar, spec = margins, ...)
    }
    else {
        for (i in 1:NCOL(X)) {
            X[, i] = .one.mar(X[, i], margins[i], ...)
        }
    }
    X
}
 --- R stacktrace ---
where 1: .margins(X, margins)
where 2: estimate.copula(finData, margins = "edf")
where 3: system.time(result <- estimate.copula(finData, margins = "edf"))
where 4: eval(expr, .GlobalEnv)
where 5: eval(expr, .GlobalEnv)
where 6: withVisible(eval(expr, .GlobalEnv))
where 7: doTryCatch(return(expr), name, parentenv, handler)
where 8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 9: tryCatchList(expr, classes, parentenv, handlers)
where 10: 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 11: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
where 12: evalFunc(ce, options)
where 13: tryCatchList(expr, classes, parentenv, handlers)
where 14: tryCatch(evalFunc(ce, options), finally = {
    cat("\n")
    sink()
})
where 15: driver$runcode(drobj, chunk, chunkopts)
where 16: utils::Sweave(...)
where 17: engine$weave(file, quiet = quiet, encoding = enc)
where 18: doTryCatch(return(expr), name, parentenv, handler)
where 19: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 20: tryCatchList(expr, classes, parentenv, handlers)
where 21: 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 22: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/HAC.Rcheck/vign_test/HAC", 
    ser_elibs = "/tmp/RtmpWoycMo/file1e4f5ab32934.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (X, margins, ...) 
{
    if (is.null(margins) | (class(X) != "matrix") | (NROW(X) == 
        1)) {
        X
    }
    else {
        if (length(margins) == 1) {
            X = apply(X, 2, .one.mar, spec = margins, ...)
        }
        else {
            for (i in 1:NCOL(X)) {
                X[, i] = .one.mar(X[, i], margins[i], ...)
            }
        }
        X
    }
}
<bytecode: 0xe9996b0>
<environment: namespace:HAC>
 --- function search by body ---
Function .margins in namespace HAC has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1