Error(s) in re-building vignettes:
--- re-building ‘NORTARA.Rmd’ using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
NORTARA
 --- call from context --- 
Perform_chol(r_matrix, w_k_bar, invcdfnames, paramslists)
 --- call from argument --- 
if (class(chol_decompose_val) == "try-error") {
    b <- b + 1
    r_adjust_matrix <- r_matrix[1:(ndim - b), 1:(ndim - b)]
} else break
 --- R stacktrace ---
where 1: Perform_chol(r_matrix, w_k_bar, invcdfnames, paramslists)
where 2: BoundingRA(cor_matrix, invcdfnames, paramslists, m1, c1, c2, 
    delta1, sigma0, epsilon, maxit)
where 3: NORTARA::genNORTARA(10000, cor_matrix, invcdfnames, paramslists)
where 4: eval(expr, envir, enclos)
where 5: eval(expr, envir, enclos)
where 6: withVisible(eval(expr, envir, enclos))
where 7: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 8: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 9: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 10: 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 11: evaluate::evaluate(...)
where 12: 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 13: 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 14: block_exec(params)
where 15: call_block(x)
where 16: process_group.block(group)
where 17: process_group(group)
where 18: 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 19: process_file(text, output)
where 20: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
where 21: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    output_dir = getwd(), ...)
where 22: vweave_rmarkdown(...)
where 23: engine$weave(file, quiet = quiet, encoding = enc)
where 24: doTryCatch(return(expr), name, parentenv, handler)
where 25: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 26: tryCatchList(expr, classes, parentenv, handlers)
where 27: 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 28: tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-clang/NORTARA.Rcheck/vign_test/NORTARA", 
    ser_elibs = "/tmp/RtmpmqGsuk/fileb4a1318026c2.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (r_matrix, w_k_bar, invcdfnames, paramslists) 
{
    ndim <- ncol(r_matrix)
    mk <- nrow(w_k_bar)
    tmp_paramslists <- list()
    r_matrix[lower.tri(r_matrix)] <- 0
    upper_elements <- r_matrix[upper.tri(r_matrix)]
    upper_elements[upper_elements == 1] <- 0.999
    upper_elements[upper_elements == -1] <- -0.999
    r_matrix[upper.tri(r_matrix)] <- upper_elements
    r_matrix <- r_matrix + t(r_matrix)
    diag(r_matrix) <- 1
    r_adjust_matrix <- r_matrix
    b <- 0
    while (1) {
        chol_decompose_val <- try(chol(r_adjust_matrix), silent = TRUE)
        if (class(chol_decompose_val) == "try-error") {
            b <- b + 1
            r_adjust_matrix <- r_matrix[1:(ndim - b), 1:(ndim - 
                b)]
        }
        else break
    }
    mk_correlated_standard_norm <- w_k_bar[, 1:(ndim - b)] %*% 
        chol_decompose_val
    y_estimator <- matrix(rep(0, ndim * ndim), nrow = ndim)
    diag(y_estimator) <- 1
    if (mk < 60) 
        y_estimator[1:(ndim - b), 1:(ndim - b)] <- y_crude_estimator(mk_correlated_standard_norm, 
            invcdfnames[1:(ndim - b)], paramslists[1:(ndim - 
                b)])
    else y_estimator[1:(ndim - b), 1:(ndim - b)] <- y_control_estimator(mk_correlated_standard_norm, 
        r_matrix[1:(ndim - b), 1:(ndim - b)], invcdfnames[1:(ndim - 
            b)], paramslists[1:(ndim - b)])
    if (b != 0) {
        for (i in ndim:(ndim - b + 1)) for (j in 1:(i - 1)) {
            r_mat <- matrix(c(1, r_matrix[j, i], r_matrix[j, 
                i], 1), nrow = 2)
            mk_correlated_standard_norm <- w_k_bar[, c(j, i)] %*% 
                chol(r_mat)
            if (mk < 60) 
                tmp <- y_crude_estimator(mk_correlated_standard_norm, 
                  invcdfnames[c(i, j)], paramslists[c(i, j)])[1, 
                  2]
            else tmp <- y_control_estimator(mk_correlated_standard_norm, 
                r_mat, invcdfnames[c(i, j)], paramslists[c(i, 
                  j)])[1, 2]
            y_estimator[j, i] <- y_estimator[i, j] <- tmp
        }
    }
    y_estimator
}
<bytecode: 0x3ce3ab8>
<environment: namespace:NORTARA>
 --- function search by body ---
Function Perform_chol in namespace NORTARA has this body.
 ----------- END OF FAILURE REPORT -------------- 
Quitting from lines 86-111 (NORTARA.Rmd) 
Error: processing vignette 'NORTARA.Rmd' failed with diagnostics:
the condition has length > 1
--- failed re-building ‘NORTARA.Rmd’

SUMMARY: processing the following file failed:
  ‘NORTARA.Rmd’

Error: Vignette re-building failed.
Execution halted