@@ -305,7 +305,7 @@ applyFolds <- function(object, folds = cv(rep(1, length(unique(object$id))), typ
305305
306306 if (any(! grepl(" \\ (" , singleBls )))
307307 stop(paste0(" applyFolds can not deal with the following base-learner(s) without brackets: " ,
308- paste (singleBls [! grepl(" \\ (" , singleBls )], collapse = " , " )))
308+ toString (singleBls [! grepl(" \\ (" , singleBls )])))
309309
310310
311311 # # check if data includes all variables
@@ -321,7 +321,7 @@ applyFolds <- function(object, folds = cv(rep(1, length(unique(object$id))), typ
321321 any( grepl(w , object $ baselearner [[i ]]$ get_names() ) )) return (i ))
322322 )[1 ])
323323
324- stop(paste0(" base-learner(s) " , paste (unlist(list (1 ,2 )), collapse = " , " ),
324+ stop(paste0(" base-learner(s) " , toString (unlist(list (1 ,2 ))),
325325 " contain(s) variables, which are not part of the data object." ))
326326
327327 }
@@ -914,7 +914,7 @@ validateFDboost <- function(object, response = NULL,
914914 # stop() or warning()?
915915 if (sum(! modFitted ) > sum(modFitted )) warning(" More than half of the models could not be fitted." )
916916
917- warning(" Model fit did not work in fold " , paste (which(! modFitted ), collapse = " , " ))
917+ warning(" Model fit did not work in fold " , toString (which(! modFitted )))
918918 modRisk <- modRisk [modFitted ]
919919 OOBweights <- OOBweights [,modFitted ]
920920 folds <- folds [,modFitted ]
@@ -1585,7 +1585,7 @@ plot_bootstrapped_coef <- function(temp, l,
15851585 xlab = paste(" \n " , temp $ xlab ), ylab = paste(" \n " , temp $ ylab ),
15861586 zlab = paste(" \n " , " coef" ),
15871587 zlim = if (any(is.null(ylim ))) range(matvec , na.rm = TRUE ) else ylim ,
1588- main = paste (temp $ main , " at " , probs [k ]* 100 , " %-quantile" , sep = " " ),
1588+ main = paste0 (temp $ main , " at " , probs [k ]* 100 , " %-quantile" ),
15891589 col = getColPersp(tempZ )))
15901590
15911591 }
@@ -1620,7 +1620,7 @@ plot_bootstrapped_coef <- function(temp, l,
16201620 myargs = list (x = temp $ y , y = temp $ x , z = t(tempZ ), xlab = paste(" \n " , temp $ xlab ),
16211621 ylab = paste(" \n " , temp $ ylab ), zlim = c(min(matvec , na.rm = TRUE ),
16221622 max(matvec , na.rm = TRUE )),
1623- main = paste (temp $ main , " at " , probs [k ]* 100 , " %-quantile" , sep = " " ),
1623+ main = paste0 (temp $ main , " at " , probs [k ]* 100 , " %-quantile" ),
16241624 col = heat.colors(length(temp $ x )^ 2 )
16251625 )
16261626 )
@@ -1643,16 +1643,16 @@ plot_bootstrapped_coef <- function(temp, l,
16431643 myRow <- t(temp $ value [[which(quantx [j ]== temp $ x )]])
16441644
16451645 plot_curves(x_i = temp $ y , y_i = myRow , xlab_i = temp $ ylab ,
1646- main_i = paste (temp $ main , " at " , temp $ xlab ," =" ,quantx [j ], sep = " " ),
1646+ main_i = paste0 (temp $ main , " at " , temp $ xlab ," =" ,quantx [j ]),
16471647 ylim_i = ylim )
16481648
16491649 }else {
16501650 quantz <- temp $ z
16511651 myRow <- sapply(temp $ value , function (x ) x [quantx [j ]== temp $ x & quantz [j ]== temp $ z , ]) # first column
16521652
16531653 plot_curves(x_i = temp $ y , y_i = myRow , xlab_i = temp $ ylab ,
1654- main_i = paste (temp $ main , " at " , temp $ xlab , " =" , quantx [j ], " , " ,
1655- temp $ zlab , " =" , quantz [j ], sep = " " ),
1654+ main_i = paste0 (temp $ main , " at " , temp $ xlab , " =" , quantx [j ], " , " ,
1655+ temp $ zlab , " =" , quantz [j ]),
16561656 ylim_i = ylim )
16571657 }
16581658 }
@@ -1713,7 +1713,7 @@ cvLong <- function(id, weights = rep(1, l=length(id)),
17131713 B = B , prob = prob , strata = strata )
17141714 foldsLong <- folds [id , , drop = FALSE ] * weights
17151715 }
1716- attr(foldsLong , " type" ) <- paste (B , " -fold " , type , sep = " " )
1716+ attr(foldsLong , " type" ) <- paste0 (B , " -fold " , type )
17171717 return (foldsLong )
17181718
17191719}
0 commit comments