Error(s) in re-building vignettes:
  ...
--- re-building ‘Ball.Rmd’ using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
Ball
 --- call from context --- 
bcov.test.default(x = x, y = y, weight = "prob")
 --- call from argument --- 
if (class(x) == "list") {
    data_name <- gsub(x = data_name, pattern = " and NULL", replacement = "")
}
 --- R stacktrace ---
where 1: bcov.test.default(x = x, y = y, weight = "prob")
where 2: bcov.test(x = x, y = y, weight = "prob")
where 3: eval(expr, envir, enclos)
where 4: eval(expr, envir, enclos)
where 5: withVisible(eval(expr, envir, enclos))
where 6: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 7: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 8: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 9: 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 10: evaluate::evaluate(...)
where 11: 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: 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 13: block_exec(params)
where 14: call_block(x)
where 15: process_group.block(group)
where 16: process_group(group)
where 17: 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 18: process_file(text, output)
where 19: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, 
    encoding = encoding)
where 20: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 21: vweave_rmarkdown(...)
where 22: engine$weave(file, quiet = quiet, encoding = enc)
where 23: doTryCatch(return(expr), name, parentenv, handler)
where 24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 25: tryCatchList(expr, classes, parentenv, handlers)
where 26: 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 27: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/Ball.Rcheck/vign_test/Ball", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpLwurJO/file2ba1e8b08a0.rds")

 --- value of length: 2 type: logical ---
[1] FALSE FALSE
 --- function from context --- 
function (x, y = NULL, num.permutations = 99, distance = FALSE, 
    weight = FALSE, seed = 1, num.threads = 0, ...) 
{
    method = "permute"
    data_name <- paste(deparse(substitute(x)), "and", deparse(substitute(y)))
    if (length(data_name) > 1) {
        data_name <- ""
    }
    type <- "bcov"
    if (class(x) == "list") {
        data_name <- gsub(x = data_name, pattern = " and NULL", 
            replacement = "")
    }
    weight <- examine_weight_arguments(weight)
    result <- bcov_test_internal_wrap(x = x, y = y, num.permutations = num.permutations, 
        distance = distance, weight = weight, seed = seed, method = method, 
        type = type, num.threads = num.threads)
    if (num.permutations == 0) {
        return(result)
    }
    else {
        if (weight == "constant") {
            stat <- result[["statistic"]][1]
            pvalue <- result[["p.value"]][1]
            weight_name <- "constant"
        }
        else if (weight == "probability") {
            stat <- result[["statistic"]][2]
            pvalue <- result[["p.value"]][2]
            weight_name <- "probability"
        }
        else if (weight == "chisquare") {
            stat <- result[["statistic"]][3]
            pvalue <- result[["p.value"]][3]
            weight_name <- "chisquare"
        }
        data_name <- paste0(data_name, "\nnumber of observations = ", 
            result[["info"]][["N"]])
        data_name <- paste0(data_name, "\nreplicates = ", num.permutations, 
            ", weight: ", weight_name)
        test_method <- "Ball Covariance test of %sindependence"
        test_type <- ifelse(class(x) == "list" && length(x) > 
            2, "mutual ", "")
        test_method <- sprintf(test_method, test_type)
        alternative_message <- "random variables are dependent"
        e <- list(statistic = stat, p.value = pvalue, replicates = num.permutations, 
            size = result[["info"]][["N"]], complete.info = result, 
            alternative = alternative_message, method = test_method, 
            data.name = data_name)
        class(e) <- "htest"
        return(e)
    }
}
<bytecode: 0x557795c934e8>
<environment: namespace:Ball>
 --- function search by body ---
Function bcov.test.default in namespace Ball has this body.
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1