Skip to content

Commit

Permalink
replace \dontrun with \donttest
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsuuraKentaro committed Sep 30, 2024
1 parent 6f7d376 commit ec8af34
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion R/adjust_significance_level.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' # ...
#'
#' # Simulation-based adjustment of the significance level using `allocation_rule`
#' \dontrun{
#' \donttest{
#' adjusted_alpha <- adjust_significance_level(
#' allocation_rule, models,
#' N_total = 150, N_ini = rep(10, 5), N_block = 10,
Expand Down
4 changes: 2 additions & 2 deletions R/learn_allocation_rule.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#'
#' # We obtain an optimal adaptive allocation rule by executing
#' # `learn_allocation_rule()` with the `models`.
#' \dontrun{
#' \donttest{
#' allocation_rule <- learn_allocation_rule(
#' models,
#' N_total = 150, N_ini = rep(10, 5), N_block = 10, Delta = 1.3,
Expand All @@ -85,7 +85,7 @@
#' )
#'
#' # Then, we specify the argument `rl_models` in `learn_allocation_rule` function.
#' \dontrun{
#' \donttest{
#' allocation_rule <- learn_allocation_rule(
#' models,
#' N_total = 150, N_ini = rep(10, 5), N_block = 10, Delta = 1.3,
Expand Down
6 changes: 3 additions & 3 deletions R/rl_config_set.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
#' @return A list of reinforcement learning configuration parameters
#'
#' @examples
#' \dontrun{
#' \donttest{
#' allocation_rule <- learn_allocation_rule(
#' models,
#' N_total = 150, N_ini = rep(10, 5), N_block = 10, Delta = 1.3,
#' outcome_type = "continuous", sd_normal = sqrt(4.5),
#' seed = 123,
#' # We change `iter` to 200 and `cores` for reinforcement learning to 8
#' rl_config = rl_config_set(iter = 200, cores = 8),
#' # We change `iter` to 200 and `cores` for reinforcement learning to 2
#' rl_config = rl_config_set(iter = 200, cores = 2),
#' alpha = 0.025
#' )
#' }
Expand Down
2 changes: 1 addition & 1 deletion R/rl_dnn_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' @return A list of DNN configuration parameters
#'
#' @examples
#' \dontrun{
#' \donttest{
#' allocation_rule <- learn_allocation_rule(
#' models,
#' N_total = 150, N_ini = rep(10, 5), N_block = 10, Delta = 1.3,
Expand Down
2 changes: 1 addition & 1 deletion R/simulate_one_trial.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' the estimated target dose, and the MAE.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' # We computed `allocation_rule` and `adjusted_alpha`
#' # ...
#'
Expand Down
2 changes: 1 addition & 1 deletion man/adjust_significance_level.Rd

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

4 changes: 2 additions & 2 deletions man/learn_allocation_rule.Rd

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

6 changes: 3 additions & 3 deletions man/rl_config_set.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/rl_dnn_config.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/simulate_one_trial.Rd

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

0 comments on commit ec8af34

Please sign in to comment.