From e981a806feb74e9e6b4acc93fe9354500232a6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lie=20Siberchicot?= Date: Thu, 10 Mar 2022 09:11:03 +0100 Subject: [PATCH] Reduce the number of cores used for examples with parallelization (max 2 to pass the check as cran) --- man/bootdist.Rd | 4 ++-- man/bootdistcens.Rd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/bootdist.Rd b/man/bootdist.Rd index ef031b96..5d1b1257 100644 --- a/man/bootdist.Rd +++ b/man/bootdist.Rd @@ -206,12 +206,12 @@ proc.time() - ptm # parallel version using snow require(parallel) ptm <- proc.time() -summary(bootdist(f1, niter = niter, parallel = "snow", ncpus = 4)) +summary(bootdist(f1, niter = niter, parallel = "snow", ncpus = 2)) proc.time() - ptm # parallel version using multicore (not available on Windows) ptm <- proc.time() -summary(bootdist(f1, niter = niter, parallel = "multicore", ncpus = 4)) +summary(bootdist(f1, niter = niter, parallel = "multicore", ncpus = 2)) proc.time() - ptm } diff --git a/man/bootdistcens.Rd b/man/bootdistcens.Rd index dc37502d..13c5b946 100644 --- a/man/bootdistcens.Rd +++ b/man/bootdistcens.Rd @@ -164,12 +164,12 @@ proc.time() - ptm # parallel version using snow require(parallel) ptm <- proc.time() -summary(bootdistcens(f1, niter = niter, parallel = "snow", ncpus = 4)) +summary(bootdistcens(f1, niter = niter, parallel = "snow", ncpus = 2)) proc.time() - ptm # parallel version using multicore (not available on Windows) ptm <- proc.time() -summary(bootdistcens(f1, niter = niter, parallel = "multicore", ncpus = 4)) +summary(bootdistcens(f1, niter = niter, parallel = "multicore", ncpus = 2)) proc.time() - ptm }