[R] [CI] add more linting checks (#8624)

This commit is contained in:
James Lamb
2022-12-29 04:20:36 -06:00
committed by GitHub
parent b05abfc494
commit 9a98c3726c
3 changed files with 9 additions and 5 deletions

View File

@@ -328,7 +328,6 @@ setinfo.xgb.DMatrix <- function(object, name, info, ...) {
return(TRUE)
}
stop("setinfo: unknown info name ", name)
return(FALSE)
}
@@ -418,7 +417,7 @@ print.xgb.DMatrix <- function(x, verbose = FALSE, ...) {
cat(infos)
cnames <- colnames(x)
cat(' colnames:')
if (verbose & !is.null(cnames)) {
if (verbose && !is.null(cnames)) {
cat("\n'")
cat(cnames, sep = "','")
cat("'")