Skip to content

Commit d3db9e1

Browse files
committed
use omit
1 parent 265a337 commit d3db9e1

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

R/SimSolve.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ SimSolve <- function(design, interval, b, generate, analyse, summarise,
464464
integer = TRUE, formula = y ~ poly(x, 2), family = 'binomial',
465465
parallel = FALSE, cl = NULL, save = TRUE, resume = TRUE,
466466
method = 'ProBABLI', wait.time = NULL,
467-
ncores = parallelly::availableCores() - 1L,
467+
ncores = parallelly::availableCores(omit = 1L),
468468
type = ifelse(.Platform$OS.type == 'windows', 'PSOCK', 'FORK'),
469469
maxiter = 100L, check.interval = TRUE,
470470
verbose = TRUE, control = list(),

R/runArraySimulation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ runArraySimulation <- function(design, ..., replications,
296296
filename_suffix = paste0("-", array2row(arrayID)),
297297
addArrayInfo = TRUE,
298298
parallel = FALSE, cl = NULL,
299-
ncores = parallelly::availableCores() - 1L,
299+
ncores = parallelly::availableCores(omit = 1L),
300300
save_details = list(),
301301
control = list()){
302302
dots <- list(...)

R/runSimulation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ runSimulation <- function(design, replications, generate, analyse, summarise,
978978
fixed_objects = NULL, packages = NULL, filename = NULL,
979979
debug = 'none', load_seed = NULL, save = any(replications > 2),
980980
store_results = TRUE, save_results = FALSE,
981-
parallel = FALSE, ncores = parallelly::availableCores() - 1L,
981+
parallel = FALSE, ncores = parallelly::availableCores(omit = 1L),
982982
cl = NULL, notification = 'none', beep = FALSE, sound = 1,
983983
CI = .95, seed = NULL, boot_method='none', boot_draws = 1000L,
984984
max_errors = 50L, resume = TRUE, save_details = list(),

man/SimSolve.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/runArraySimulation.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/runSimulation.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)