Error(s) in re-building vignettes:
  ...
--- re-building 'mvtboost_vignette.Rmd' using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
mvtboost
 --- call from context --- 
mvtb(Y = Ys, X = X, n.trees = 1000, shrinkage = 0.01, interaction.depth = 3)
 --- call from argument --- 
if (class(Y) != "matrix") {
    Y <- as.matrix(Y)
}
 --- R stacktrace ---
where 1: mvtb(Y = Ys, X = X, n.trees = 1000, shrinkage = 0.01, interaction.depth = 3)
where 2: eval(expr, envir, enclos)
where 3: eval(expr, envir, enclos)
where 4: withVisible(eval(expr, envir, enclos))
where 5: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 6: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 7: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 8: 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 9: evaluate::evaluate(...)
where 10: 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 11: 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 12: block_exec(params)
where 13: call_block(x)
where 14: process_group.block(group)
where 15: process_group(group)
where 16: 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 17: process_file(text, output)
where 18: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
where 19: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 20: vweave_rmarkdown(...)
where 21: engine$weave(file, quiet = quiet, encoding = enc)
where 22: doTryCatch(return(expr), name, parentenv, handler)
where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 24: tryCatchList(expr, classes, parentenv, handlers)
where 25: 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 26: tools:::.buildOneVignette("mvtboost_vignette.Rmd", "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/mvtboost.Rcheck/vign_test/mvtboost", 
    TRUE, FALSE, "mvtboost_vignette", "UTF-8", "/tmp/RtmpNh6sXT/filedbc2fcc7cab.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (Y, X, n.trees = 100, shrinkage = 0.01, interaction.depth = 1, 
    distribution = "gaussian", train.fraction = 1, bag.fraction = 1, 
    cv.folds = 1, s = NULL, seednum = NULL, compress = FALSE, 
    save.cv = FALSE, iter.details = TRUE, verbose = FALSE, mc.cores = 1, 
    ...) 
{
    if (class(Y) != "matrix") {
        Y <- as.matrix(Y)
    }
    if (is.null(ncol(X))) {
        X <- as.matrix(X)
    }
    params <- c(as.list(environment()), list(...))
    if (!is.null(seednum)) {
        set.seed(seednum)
    }
    stopifnot(nrow(X) == nrow(Y))
    n <- nrow(X)
    k <- ncol(Y)
    p <- ncol(X)
    if (is.null(colnames(X))) {
        colnames(X) <- paste("X", 1:p, sep = "")
    }
    if (is.null(colnames(Y))) {
        colnames(Y) <- paste("Y", 1:k, sep = "")
    }
    xnames <- colnames(X)
    ynames <- colnames(Y)
    if (is.null(s)) {
        s <- sample(1:n, floor(n * train.fraction), replace = F)
    }
    if (any(is.na(Y))) {
        stop("NAs not allowed in outcome variables.")
    }
    if (shrinkage > 1 | shrinkage <= 0) {
        stop("shrinkage should be > 0, < 1")
    }
    if (train.fraction > 1 | train.fraction <= 0) {
        stop("train.fraction should be > 0, < 1")
    }
    if (bag.fraction > 1 | bag.fraction <= 0) {
        stop("bag.fraction should be > 0, < 1")
    }
    trainerr <- testerr <- vector(length = n.trees)
    if (cv.folds > 1) {
        ocv <- mvtbCV(Y = Y, X = X, cv.folds = cv.folds, s = s, 
            save.cv = save.cv, mc.cores = mc.cores, n.trees = n.trees, 
            shrinkage = shrinkage, interaction.depth = interaction.depth, 
            distribution = distribution, bag.fraction = bag.fraction, 
            verbose = verbose, seednum = seednum)
        best.iters.cv <- ocv$best.iters.cv
        cv.err <- ocv$cv.err
        out.fit <- ocv$models.k[[cv.folds + 1]]
    }
    else {
        out.fit <- mvtb.fit(Y = Y, X = X, n.trees = n.trees, 
            shrinkage = shrinkage, interaction.depth = interaction.depth, 
            distribution = distribution, bag.fraction = bag.fraction, 
            verbose = verbose, s = s, seednum = seednum, ...)
        best.iters.cv <- NULL
        cv.err <- NULL
        ocv <- NULL
    }
    models <- out.fit$models
    trainerr <- out.fit$trainerr
    testerr <- out.fit$testerr
    best.trees <- list(best.testerr = which.min(testerr), best.cv = best.iters.cv, 
        last = n.trees)
    if (!save.cv) {
        ocv <- NULL
    }
    if (iter.details == T) {
        fl <- list(models = models, best.trees = best.trees, 
            params = params, trainerr = trainerr, testerr = testerr, 
            cv.err = cv.err, ocv = ocv, s = s, n = nrow(X), xnames = colnames(X), 
            ynames = colnames(Y))
    }
    else {
        fl <- list(models = models, best.trees = best.trees, 
            params = params, s = s, ocv = ocv, n = nrow(X), xnames = colnames(X), 
            ynames = colnames(Y))
    }
    if (compress) {
        fl <- lapply(fl, comp)
    }
    class(fl) <- "mvtb"
    return(fl)
}
<bytecode: 0x9aa36d0>
<environment: namespace:mvtboost>
 --- function search by body ---
Function mvtb in namespace mvtboost has this body.
 ----------- END OF FAILURE REPORT -------------- 
Quitting from lines 31-43 (mvtboost_vignette.Rmd) 
Error: processing vignette 'mvtboost_vignette.Rmd' failed with diagnostics:
the condition has length > 1
--- failed re-building 'mvtboost_vignette.Rmd'

--- re-building 'mvtboost_wellbeing.Rmd' using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
mvtboost
 --- call from context --- 
mvtb(Y = Ys, X = Xs)
 --- call from argument --- 
if (class(Y) != "matrix") {
    Y <- as.matrix(Y)
}
 --- R stacktrace ---
where 1: mvtb(Y = Ys, X = Xs)
where 2: eval(expr, envir, enclos)
where 3: eval(expr, envir, enclos)
where 4: withVisible(eval(expr, envir, enclos))
where 5: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 6: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 7: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 8: 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 9: evaluate::evaluate(...)
where 10: 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 11: 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 12: block_exec(params)
where 13: call_block(x)
where 14: process_group.block(group)
where 15: process_group(group)
where 16: 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 17: process_file(text, output)
where 18: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
where 19: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 20: vweave_rmarkdown(...)
where 21: engine$weave(file, quiet = quiet, encoding = enc)
where 22: doTryCatch(return(expr), name, parentenv, handler)
where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 24: tryCatchList(expr, classes, parentenv, handlers)
where 25: 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 26: tools:::.buildOneVignette("mvtboost_wellbeing.Rmd", "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/mvtboost.Rcheck/vign_test/mvtboost", 
    TRUE, FALSE, "mvtboost_wellbeing", "UTF-8", "/tmp/RtmpNh6sXT/filedbc51c5f83.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (Y, X, n.trees = 100, shrinkage = 0.01, interaction.depth = 1, 
    distribution = "gaussian", train.fraction = 1, bag.fraction = 1, 
    cv.folds = 1, s = NULL, seednum = NULL, compress = FALSE, 
    save.cv = FALSE, iter.details = TRUE, verbose = FALSE, mc.cores = 1, 
    ...) 
{
    if (class(Y) != "matrix") {
        Y <- as.matrix(Y)
    }
    if (is.null(ncol(X))) {
        X <- as.matrix(X)
    }
    params <- c(as.list(environment()), list(...))
    if (!is.null(seednum)) {
        set.seed(seednum)
    }
    stopifnot(nrow(X) == nrow(Y))
    n <- nrow(X)
    k <- ncol(Y)
    p <- ncol(X)
    if (is.null(colnames(X))) {
        colnames(X) <- paste("X", 1:p, sep = "")
    }
    if (is.null(colnames(Y))) {
        colnames(Y) <- paste("Y", 1:k, sep = "")
    }
    xnames <- colnames(X)
    ynames <- colnames(Y)
    if (is.null(s)) {
        s <- sample(1:n, floor(n * train.fraction), replace = F)
    }
    if (any(is.na(Y))) {
        stop("NAs not allowed in outcome variables.")
    }
    if (shrinkage > 1 | shrinkage <= 0) {
        stop("shrinkage should be > 0, < 1")
    }
    if (train.fraction > 1 | train.fraction <= 0) {
        stop("train.fraction should be > 0, < 1")
    }
    if (bag.fraction > 1 | bag.fraction <= 0) {
        stop("bag.fraction should be > 0, < 1")
    }
    trainerr <- testerr <- vector(length = n.trees)
    if (cv.folds > 1) {
        ocv <- mvtbCV(Y = Y, X = X, cv.folds = cv.folds, s = s, 
            save.cv = save.cv, mc.cores = mc.cores, n.trees = n.trees, 
            shrinkage = shrinkage, interaction.depth = interaction.depth, 
            distribution = distribution, bag.fraction = bag.fraction, 
            verbose = verbose, seednum = seednum)
        best.iters.cv <- ocv$best.iters.cv
        cv.err <- ocv$cv.err
        out.fit <- ocv$models.k[[cv.folds + 1]]
    }
    else {
        out.fit <- mvtb.fit(Y = Y, X = X, n.trees = n.trees, 
            shrinkage = shrinkage, interaction.depth = interaction.depth, 
            distribution = distribution, bag.fraction = bag.fraction, 
            verbose = verbose, s = s, seednum = seednum, ...)
        best.iters.cv <- NULL
        cv.err <- NULL
        ocv <- NULL
    }
    models <- out.fit$models
    trainerr <- out.fit$trainerr
    testerr <- out.fit$testerr
    best.trees <- list(best.testerr = which.min(testerr), best.cv = best.iters.cv, 
        last = n.trees)
    if (!save.cv) {
        ocv <- NULL
    }
    if (iter.details == T) {
        fl <- list(models = models, best.trees = best.trees, 
            params = params, trainerr = trainerr, testerr = testerr, 
            cv.err = cv.err, ocv = ocv, s = s, n = nrow(X), xnames = colnames(X), 
            ynames = colnames(Y))
    }
    else {
        fl <- list(models = models, best.trees = best.trees, 
            params = params, s = s, ocv = ocv, n = nrow(X), xnames = colnames(X), 
            ynames = colnames(Y))
    }
    if (compress) {
        fl <- lapply(fl, comp)
    }
    class(fl) <- "mvtb"
    return(fl)
}
<bytecode: 0xb8458a0>
<environment: namespace:mvtboost>
 --- function search by body ---
Function mvtb in namespace mvtboost has this body.
 ----------- END OF FAILURE REPORT -------------- 
Quitting from lines 25-40 (mvtboost_wellbeing.Rmd) 
Error: processing vignette 'mvtboost_wellbeing.Rmd' failed with diagnostics:
the condition has length > 1
--- failed re-building 'mvtboost_wellbeing.Rmd'

SUMMARY: processing the following files failed:
  'mvtboost_vignette.Rmd' 'mvtboost_wellbeing.Rmd'

Error: Vignette re-building failed.
Execution halted