Error(s) in re-building vignettes:
  ...
--- re-building ‘DatabionicSwarm.Rmd’ using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
DatabionicSwarm
 --- call from context --- 
uniquePoints_hlp(cbind(X, Y))
 --- call from argument --- 
if (class(data) != "matrix") {
    data <- as.matrix(data)
}
 --- R stacktrace ---
where 1: uniquePoints_hlp(cbind(X, Y))
where 2: DelaunayGraphMatrix_hlp(TiledX, TiledY, PlotIt = PlotIt)
where 3: Delaunay4Points(BestMatches, Grid = LC, IsToroid = T, PlotIt = F, 
    Gabriel = GabrielGraph)
where 4: DBSclustering(k = 7, Hepta$Data, visualization$Bestmatches, visualization$LC, 
    PlotIt = FALSE)
where 5: eval(expr, envir, enclos)
where 6: eval(expr, envir, enclos)
where 7: withVisible(eval(expr, envir, enclos))
where 8: withCallingHandlers(withVisible(eval(expr, envir, enclos)), warning = wHandler, 
    error = eHandler, message = mHandler)
where 9: handle(ev <- withCallingHandlers(withVisible(eval(expr, envir, 
    enclos)), warning = wHandler, error = eHandler, message = mHandler))
where 10: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr, 
    envir, enclos)), warning = wHandler, error = eHandler, message = mHandler)))
where 11: 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 12: evaluate::evaluate(...)
where 13: 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: 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 15: block_exec(params)
where 16: call_block(x)
where 17: process_group.block(group)
where 18: process_group(group)
where 19: 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 20: process_file(text, output)
where 21: knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet, 
    encoding = encoding)
where 22: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    ...)
where 23: vweave_rmarkdown(...)
where 24: engine$weave(file, quiet = quiet, encoding = enc)
where 25: doTryCatch(return(expr), name, parentenv, handler)
where 26: tryCatchOne(expr, names, parentenv, handlers[[1L]])
where 27: tryCatchList(expr, classes, parentenv, handlers)
where 28: 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 29: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/DatabionicSwarm.Rcheck/vign_test/DatabionicSwarm", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpIm9i5W/file78f23854d014.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (data) 
{
    eps <- 1e-10
    if (class(data) != "matrix") {
        data <- as.matrix(data)
    }
    AnzPoints <- nrow(data)
    rownames(data) <- c(1:AnzPoints)
    dists <- as.matrix(dist(data))
    IsDuplicate = (dists < eps) * 1 - diag(AnzPoints)
    dists <- dists - (dists * upper.tri(dists, diag = T)) + upper.tri(dists, 
        diag = T)
    if (length(which(dists < eps)) > 0) {
        ind <- which(dists < eps, arr.ind = TRUE)
        ind <- ind[as.character(unique(ind[, 1])), ]
        uniquedata <- data[-as.matrix(ind)[, 1], ]
        mergeind <- c(1:AnzPoints)
        indhelp <- c(1:nrow(uniquedata))
        names(indhelp) <- rownames(uniquedata)
        mergeind[as.numeric(names(indhelp))] <- indhelp
        if (ncol(as.matrix(ind)) == 1) {
            mergeind[as.matrix(ind)[, 1]] = as.matrix(ind)[, 
                1]
        }
        else {
            mergeind[ind[, 1]] <- mergeind[ind[, 2]]
        }
        return(list(unique = as.matrix(uniquedata), sortind = as.numeric(rownames(uniquedata)), 
            mergeind = mergeind, IsDuplicate = IsDuplicate))
    }
    else {
        return(list(unique = unique(data), sortind = c(1:AnzPoints), 
            mergeind = c(1:AnzPoints), IsDuplicate = IsDuplicate))
    }
}
<bytecode: 0x55a789276620>
<environment: 0x55a78926f298>
 --- function search by body ---
 ----------- END OF FAILURE REPORT -------------- 
Fatal error: the condition has length > 1