Skip to content

Commit

Permalink
Merge pull request #48 from Merck/meta-forest-default
Browse files Browse the repository at this point in the history
add default values for `meta_forestly`.
  • Loading branch information
wangben718 authored May 12, 2024
2 parents 7bb0f22 + b348240 commit e47ea57
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 40 deletions.
3 changes: 0 additions & 3 deletions R/ae_forestly.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
#' meta_forestly(
#' dataset_adsl = adsl,
#' dataset_adae = adae,
#' population_term = "apat",
#' observation_term = "wk12",
#' parameter = "any;rel"
#' ) |>
#' prepare_ae_forestly() |>
#' format_ae_forestly() |>
Expand Down
5 changes: 1 addition & 4 deletions R/format_ae_forestly.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
#' adae <- forestly_adae[1:100,]
#' meta_forestly(
#' dataset_adsl = adsl,
#' dataset_adae = adae,
#' population_term = "apat",
#' observation_term = "wk12",
#' parameter = "any;rel"
#' dataset_adae = adae
#' ) |>
#' prepare_ae_forestly()|>
#' format_ae_forestly()
Expand Down
6 changes: 3 additions & 3 deletions R/meta_forestly.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
#' forestly_adsl,
#' forestly_adae,
#' population_term = "apat",
#' observation_term = "wk12",
#' observation_term = "safety",
#' parameter_term = "any;rel"
#' )
meta_forestly <- function(
dataset_adsl,
dataset_adae,
population_term,
observation_term,
population_term = "apat",
observation_term = "safety",
parameter_term = "any;rel",
population_subset = SAFFL == "Y",
observation_subset = SAFFL == "Y",
Expand Down
5 changes: 1 addition & 4 deletions R/prepare_ae_forestly.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
#' adae <- forestly_adae[1:100,]
#' meta_forestly(
#' dataset_adsl = adsl,
#' dataset_adae = adae,
#' population_term = "apat",
#' observation_term = "wk12",
#' parameter = "any;rel"
#' dataset_adae = adae
#' ) |>
#' prepare_ae_forestly()
prepare_ae_forestly <- function(
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ library("forestly")

meta_forestly(
forestly_adsl,
forestly_adae,
population_term = "apat",
observation_term = "wk12"
forestly_adae
) |>
prepare_ae_forestly(parameter = "any;rel;ser") |>
format_ae_forestly() |>
Expand Down
3 changes: 0 additions & 3 deletions man/ae_forestly.Rd

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

5 changes: 1 addition & 4 deletions man/format_ae_forestly.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/meta_forestly.Rd

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

5 changes: 1 addition & 4 deletions man/prepare_ae_forestly.Rd

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

4 changes: 1 addition & 3 deletions vignettes/forestly-cran.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ forestly_adae$TRTA <- factor(forestly_adae$TRTA, levels = c("Xanomeline Low Dose
meta_forestly(
dataset_adsl = forestly_adsl,
dataset_adae = forestly_adae,
population_term = "apat",
observation_term = "wk12"
dataset_adae = forestly_adae
) |>
prepare_ae_forestly(parameter = "any;rel;ser") |>
format_ae_forestly() |>
Expand Down
4 changes: 0 additions & 4 deletions vignettes/forestly.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ forestly_adae$TRTA <- factor(forestly_adae$TRTA, levels = c("Xanomeline Low Dose
meta_forestly(
dataset_adsl = forestly_adsl,
dataset_adae = forestly_adae,
population_term = "apat",
observation_term = "wk12",
parameter_term = "any;rel;ser"
) |>
prepare_ae_forestly() |>
Expand Down Expand Up @@ -89,8 +87,6 @@ to generate the interactive forest plot.
meta_forestly(
dataset_adsl = forestly_adsl,
dataset_adae = forestly_adae,
population_term = "apat",
observation_term = "wk12",
parameter_term = "any;rel;ser"
)
```
Expand Down
2 changes: 0 additions & 2 deletions vignettes/layout.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ The `outdata` contains all the parameters required to generate the interactive f
metadata <- meta_forestly(
dataset_adsl = forestly_adsl_3grp,
dataset_adae = forestly_adae_3grp,
population_term = "apat",
observation_term = "wk12",
parameter_term = "any;rel;ser"
)
Expand Down

0 comments on commit e47ea57

Please sign in to comment.