Skip to content

Commit

Permalink
setRxThreads to 2L in tests and vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
levenc committed Jan 4, 2024
1 parent 711bdf4 commit 93b208c
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions R/dosing_optim.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion man/poso_dose_auc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/poso_dose_conc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/poso_inter_cmin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/poso_time_cmin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat.R
Original file line number Diff line number Diff line change
@@ -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")
2 changes: 1 addition & 1 deletion vignettes/a_posteriori_dosing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion vignettes/a_priori_dosing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion vignettes/auc_based_dosing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion vignettes/multiple_endpoints.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 93b208c

Please sign in to comment.