diff --git a/R/dosing_optim.R b/R/dosing_optim.R index 924c029..6e7db18 100644 --- a/R/dosing_optim.R +++ b/R/dosing_optim.R @@ -94,7 +94,7 @@ #' } #' #' @examples -#' rxode2::setRxThreads(1) # limit the number of threads +#' rxode2::setRxThreads(2L) # limit the number of threads #' #' # model #' mod_run001 <- list( @@ -390,7 +390,7 @@ poso_time_cmin <- function(dat=NULL,prior_model=NULL,tdm=FALSE, #' } #' #' @examples -#' rxode2::setRxThreads(1) # limit the number of threads +#' rxode2::setRxThreads(2L) # limit the number of threads #' #' # model #' mod_run001 <- list( @@ -713,7 +713,7 @@ poso_dose_auc <- function(dat=NULL,prior_model=NULL,tdm=FALSE, #' } #' #' @examples -#' rxode2::setRxThreads(1) # limit the number of threads +#' rxode2::setRxThreads(2L) # limit the number of threads #' #' # model #' mod_run001 <- list( @@ -999,7 +999,7 @@ poso_dose_conc <- function(dat=NULL,prior_model=NULL,tdm=FALSE, #' } #' #' @examples -#' rxode2::setRxThreads(1) # limit the number of threads +#' rxode2::setRxThreads(2L) # limit the number of threads #' #' # model #' mod_run001 <- list( diff --git a/man/poso_dose_auc.Rd b/man/poso_dose_auc.Rd index 851a3c2..ef23bdd 100644 --- a/man/poso_dose_auc.Rd +++ b/man/poso_dose_auc.Rd @@ -114,7 +114,7 @@ time-concentration curve (AUC) given a population pharmacokinetic model, a set of individual parameters, and a target AUC. } \examples{ -rxode2::setRxThreads(1) # limit the number of threads +rxode2::setRxThreads(2L) # limit the number of threads # model mod_run001 <- list( diff --git a/man/poso_dose_conc.Rd b/man/poso_dose_conc.Rd index 339ef4e..45c1121 100644 --- a/man/poso_dose_conc.Rd +++ b/man/poso_dose_conc.Rd @@ -110,7 +110,7 @@ of individual parameters, a selected point in time, and a target concentration. } \examples{ -rxode2::setRxThreads(1) # limit the number of threads +rxode2::setRxThreads(2L) # limit the number of threads # model mod_run001 <- list( diff --git a/man/poso_inter_cmin.Rd b/man/poso_inter_cmin.Rd index c50be2d..1e26d74 100644 --- a/man/poso_inter_cmin.Rd +++ b/man/poso_inter_cmin.Rd @@ -87,7 +87,7 @@ pharmacokinetic model, a set of individual parameters, and a target concentration. } \examples{ -rxode2::setRxThreads(1) # limit the number of threads +rxode2::setRxThreads(2L) # limit the number of threads # model mod_run001 <- list( diff --git a/man/poso_time_cmin.Rd b/man/poso_time_cmin.Rd index a4698b7..5a1d1ae 100644 --- a/man/poso_time_cmin.Rd +++ b/man/poso_time_cmin.Rd @@ -117,7 +117,7 @@ Predicts the time needed to reach a selected trough concentration parameters, a dose, and a target Cmin. } \examples{ -rxode2::setRxThreads(1) # limit the number of threads +rxode2::setRxThreads(2L) # limit the number of threads # model mod_run001 <- list( diff --git a/tests/testthat.R b/tests/testthat.R index 8f0c9fb..0e825b9 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -1,6 +1,6 @@ library(rxode2) library(posologyr) library(testthat) -setRxThreads(1L) #for CRAN, following the advice of mattfidler +setRxThreads(2L) #for CRAN, following the advice of mattfidler test_check("posologyr") diff --git a/vignettes/a_posteriori_dosing.Rmd b/vignettes/a_posteriori_dosing.Rmd index 1369961..2156055 100644 --- a/vignettes/a_posteriori_dosing.Rmd +++ b/vignettes/a_posteriori_dosing.Rmd @@ -14,7 +14,7 @@ knitr::opts_chunk$set( ) set.seed(1) library(rxode2) -setRxThreads(1L) # limit the number of threads +setRxThreads(2L) # limit the number of threads ``` ```{r setup} diff --git a/vignettes/a_priori_dosing.Rmd b/vignettes/a_priori_dosing.Rmd index c571b61..7a45d4f 100644 --- a/vignettes/a_priori_dosing.Rmd +++ b/vignettes/a_priori_dosing.Rmd @@ -14,7 +14,7 @@ knitr::opts_chunk$set( ) set.seed(1) library(rxode2) -setRxThreads(1L) # limit the number of threads +setRxThreads(2L) # limit the number of threads ``` ```{r setup} diff --git a/vignettes/auc_based_dosing.Rmd b/vignettes/auc_based_dosing.Rmd index b275e75..f9aa07d 100644 --- a/vignettes/auc_based_dosing.Rmd +++ b/vignettes/auc_based_dosing.Rmd @@ -14,7 +14,7 @@ knitr::opts_chunk$set( ) set.seed(1) library(rxode2) -setRxThreads(1L) # limit the number of threads +setRxThreads(2L) # limit the number of threads ``` ```{r setup} diff --git a/vignettes/multiple_endpoints.Rmd b/vignettes/multiple_endpoints.Rmd index 3e51b18..33cc48f 100644 --- a/vignettes/multiple_endpoints.Rmd +++ b/vignettes/multiple_endpoints.Rmd @@ -14,7 +14,7 @@ knitr::opts_chunk$set( ) set.seed(1) library(rxode2) -setRxThreads(1L) # limit the number of threads +setRxThreads(2L) # limit the number of threads ``` ```{r setup}