Skip to content

Commit 857bb53

Browse files
set cores = 1 by default
1 parent 0ba3085 commit 857bb53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/workflow.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ approximate_kfold.vselsearch <- function(object,
450450
penalty = NULL,
451451
refit_proj = TRUE,
452452
seed = NULL,
453-
cores = NULL,
453+
cores = 1,
454454
...) {
455455
refmodel <- object$refmodel
456456
family <- refmodel$family
@@ -812,7 +812,7 @@ cv_loo.vselapproxcv <- function(object,
812812
thresh = 1e-6,
813813
regul = 1e-4,
814814
seed = NULL,
815-
cores = NULL,
815+
cores = 1,
816816
search_terms = NULL,
817817
...) {
818818
search_path_prev <- object$search_path
@@ -1129,7 +1129,7 @@ cv_kfold.vselapproxcv <- function(object,
11291129
nlambda = 150,
11301130
thresh = 1e-6,
11311131
regul = 1e-4,
1132-
cores = NULL,
1132+
cores = 1,
11331133
seed = NULL,
11341134
search_terms = NULL,
11351135
...) {
@@ -1524,7 +1524,7 @@ varsel_cv.vselapproxcv <- function(object,
15241524
seed = NULL,
15251525
search_terms = NULL,
15261526
cv_search = TRUE,
1527-
cores = NULL,
1527+
cores = 1,
15281528
...) {
15291529
search_path <- object$search_path
15301530
refmodel <- search_path$refmodel

0 commit comments

Comments
 (0)