Error(s) in re-building vignettes:
  ...
--- re-building ‘getting-started.rmd’ using rmarkdown
 ----------- FAILURE REPORT -------------- 
 --- failure: the condition has length > 1 ---
 --- srcref --- 
: 
 --- package (from environment) --- 
grpreg
 --- call from context --- 
newXG(X, group, group.multiplier, attr(yy, "m"), bilevel)
 --- call from argument --- 
if (class(X) != "matrix") {
    tmp <- try(X <- model.matrix(~0 + ., data = X), silent = TRUE)
    if (class(tmp)[1] == "try-error") 
        stop("X must be a matrix or able to be coerced to a matrix")
}
 --- R stacktrace ---
where 1: newXG(X, group, group.multiplier, attr(yy, "m"), bilevel)
where 2: grpreg(X, y, group, penalty = "grLasso")
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)
where 20: rmarkdown::render(file, encoding = encoding, quiet = quiet, envir = globalenv(), 
    output_dir = getwd(), ...)
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/grpreg.Rcheck/vign_test/grpreg", 
    ser_elibs = "/home/hornik/tmp/scratch/RtmpFw8x7a/file71a15fcd5bc0.rds")

 --- value of length: 2 type: logical ---
[1] FALSE  TRUE
 --- function from context --- 
function (X, g, m, ncolY, bilevel) 
{
    if (class(X) != "matrix") {
        tmp <- try(X <- model.matrix(~0 + ., data = X), silent = TRUE)
        if (class(tmp)[1] == "try-error") 
            stop("X must be a matrix or able to be coerced to a matrix")
    }
    if (storage.mode(X) == "integer") 
        storage.mode(X) <- "double"
    if (any(is.na(X))) 
        stop("Missing data (NA's) detected in X.  You must eliminate missing data (e.g., by removing cases, removing features, or imputation) before passing X to grpreg")
    if (length(g) != ncol(X)) 
        stop("Dimensions of group is not compatible with X")
    xnames <- if (is.null(colnames(X))) 
        paste("V", 1:ncol(X), sep = "")
    else colnames(X)
    G <- setupG(g, m, bilevel)
    if (ncolY > 1) {
        X <- multiX(X, ncolY)
        G <- multiG(G, ncolY)
    }
    std <- .Call("standardize", X)
    XX <- std[[1]]
    center <- std[[2]]
    scale <- std[[3]]
    nz <- which(scale > 1e-06)
    if (length(nz) != ncol(X)) {
        XX <- XX[, nz, drop = FALSE]
        G <- subsetG(G, nz)
    }
    G <- reorderG(G, attr(G, "m"), bilevel)
    if (attr(G, "reorder")) 
        XX <- XX[, attr(G, "ord")]
    if (!bilevel) {
        XX <- orthogonalize(XX, G)
        g <- attr(XX, "group")
    }
    else {
        g <- as.integer(G)
    }
    m <- attr(G, "m")
    if (all(is.na(m))) {
        m <- if (bilevel) 
            rep(1, max(g))
        else sqrt(table(g[g != 0]))
    }
    return(list(X = XX, g = g, m = m, reorder = attr(G, "reorder"), 
        ord.inv = attr(G, "ord.inv"), names = xnames, center = center, 
        scale = scale, nz = nz))
}
<bytecode: 0x55ced22b7e48>
<environment: namespace:grpreg>
 --- function search by body ---
Function newXG in namespace grpreg has this body.
 ----------- END OF FAILURE REPORT -------------- 
Quitting from lines 51-52 (getting-started.rmd) 
Error: processing vignette 'getting-started.rmd' failed with diagnostics:
the condition has length > 1
--- failed re-building ‘getting-started.rmd’

SUMMARY: processing the following file failed:
  ‘getting-started.rmd’

Error: Vignette re-building failed.
Execution halted