Error(s) in re-building vignettes:
  ...
--- re-building ‘simcausal_vignette.Rnw’ using knitr
...automatically assigning order attribute to some nodes...
node race, order:1
node W1, order:2
node W2, order:3
node W3, order:4
node Anode, order:5
node Y, order:6
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
simcausal
 --- call from context --- 
standardize_param(newNodeParams$dist_params[[idx]])
 --- call from argument --- 
if (class(distparam) %in% "list") {
    distparam <- lapply(distparam, check_len)
    distparam <- do.call("cbind", distparam)
} else if (is.vector(distparam)) {
    distparam <- check_len(distparam)
} else if (is.matrix(distparam)) {
    if (nrow(distparam) == 1) {
    }
    else if (nrow(distparam) == Nsamp) {
        distparam <- distparam[!EFUP.prev, , drop = FALSE]
    }
    else {
        if (verbose) 
            message("evaluating node " %+% cur.node$name %+% 
                " expression(s): One of the distribution parameters evaluated to a matrix of non-standard dimensions (its neither 1 nor n rows), make sure the distribution function knows how to handle it.")
    }
} else {
    if (verbose) 
        message("The node " %+% cur.node$name %+% " expression(s): " %+% 
            expr_str %+% ".\n One of the formulas evaluated to unknown data type. Make sure the distribution function knowns how to handle it...")
}
 --- R stacktrace ---
where 1: standardize_param(newNodeParams$dist_params[[idx]])
where 2: sampleNodeDistr(newNodeParams = newNodeParams, distr = distr, 
    EFUP.prev = EFUP.prev, cur.node = cur.node, expr_str = cur.node$dist_params)
where 3: simFromDAG(DAG = DAG, Nsamp = n, wide = wide, LTCF = LTCF, rndseed = rndseed, 
    rndseed.reset.node = rndseed.reset.node, verbose = verbose)
where 4: simobs(inputDAG, n = n.test, rndseed = rndseed)
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(simobs(inputDAG, n = n.test, rndseed = rndseed))
where 10: set.DAG(D)
where 11: eval(expr, envir, enclos)
where 12: eval(expr, envir, enclos)
where 13: withVisible(eval(expr, envir, enclos))
where 14: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 15: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 16: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 17: 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 18: evaluate::evaluate(...)
where 19: 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 20: 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 21: block_exec(params)
where 22: call_block(x)
where 23: process_group.block(group)
where 24: process_group(group)
where 25: 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 26: process_file(text, output)
where 27: (if (grepl("\\.[Rr]md$", file)) knit2html_v1 else if (grepl("\\.[Rr]rst$", 
    file)) knit2pandoc else knit)(file, encoding = encoding, 
    quiet = quiet, envir = globalenv(), ...)
where 28: engine$weave(file, quiet = quiet, encoding = enc)
where 29: doTryCatch(return(expr), name, parentenv, handler)
where 30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 31: tryCatchList(expr, classes, parentenv, handlers)
where 32: 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 33: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/simcausal.Rcheck/vign_test/simcausal", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpDSIfVA/file680c66c9939a.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (distparam) 
{
    check_len <- function(param) {
        len <- length(param)
        if (len == 1) {
            param <- rep.int(param, N_notNA_samp)
        }
        else if (len == Nsamp) {
            param <- param[!EFUP.prev]
        }
        else {
            if (verbose) 
                message("evaluating node " %+% cur.node$name %+% 
                  " expression(s): " %+% expr_str %+% ".\n One of the distribution parameters evaluated to non-standard vector length (its neither 1 nor n), make sure the distribution function knows how to handle it.")
        }
        param
    }
    if (class(distparam) %in% "list") {
        distparam <- lapply(distparam, check_len)
        distparam <- do.call("cbind", distparam)
    }
    else if (is.vector(distparam)) {
        distparam <- check_len(distparam)
    }
    else if (is.matrix(distparam)) {
        if (nrow(distparam) == 1) {
        }
        else if (nrow(distparam) == Nsamp) {
            distparam <- distparam[!EFUP.prev, , drop = FALSE]
        }
        else {
            if (verbose) 
                message("evaluating node " %+% cur.node$name %+% 
                  " expression(s): One of the distribution parameters evaluated to a matrix of non-standard dimensions (its neither 1 nor n rows), make sure the distribution function knows how to handle it.")
        }
    }
    else {
        if (verbose) 
            message("The node " %+% cur.node$name %+% " expression(s): " %+% 
                expr_str %+% ".\n One of the formulas evaluated to unknown data type. Make sure the distribution function knowns how to handle it...")
    }
    distparam
}
<bytecode: 0x55c7d738ba78>
<environment: 0x55c7d91dac40>
 --- function search by body ---
 ----------- END OF FAILURE REPORT -------------- 
Quitting from lines 912-935 (simcausal_vignette.Rnw) 
Error: processing vignette 'simcausal_vignette.Rnw' failed with diagnostics:

...attempt to simulate data from DAG failed...
--- failed re-building ‘simcausal_vignette.Rnw’

SUMMARY: processing the following file failed:
  ‘simcausal_vignette.Rnw’

Error: Vignette re-building failed.
Execution halted