From d87788f7e37c3c63ed0ad06c65a602ab6b744dd1 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 30 Mar 2018 17:36:06 +0100 Subject: return invisibly --- R/gensvm.grid.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'R/gensvm.grid.R') diff --git a/R/gensvm.grid.R b/R/gensvm.grid.R index fa4f4fe..8f875a3 100644 --- a/R/gensvm.grid.R +++ b/R/gensvm.grid.R @@ -158,7 +158,7 @@ gensvm.grid <- function(X, y, param.grid='tiny', refit=TRUE, scoring=NULL, cv=3, if (n.objects != length(y)) { cat("Error: X and y are not the same length.\n") - return(NULL) + invisible(NULL) } if (is.character(param.grid)) { @@ -173,7 +173,7 @@ gensvm.grid <- function(X, y, param.grid='tiny', refit=TRUE, scoring=NULL, cv=3, # Validate the range of the values for the gridsearch if (!gensvm.validate.param.grid(param.grid)) - return(NULL) + invisible(NULL) # Sort the parameter grid for efficient warm starts param.grid <- gensvm.sort.param.grid(param.grid) -- cgit v1.2.3