Skip to content

Commit

Permalink
docs: use default_cdisc_join_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Nov 15, 2023
1 parent a61bdf5 commit efe3e2c
Show file tree
Hide file tree
Showing 38 changed files with 45 additions and 51 deletions.
2 changes: 1 addition & 1 deletion R/tm_a_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#' app <- teal::init(
#' data = data,
#' modules = teal::modules(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_a_regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_data_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_front_page.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' table_1 <- data.frame(Info = c("A", "B"), Text = c("A", "B"))
#' table_2 <- data.frame(`Column 1` = c("C", "D"), `Column 2` = c(5.5, 6.6), `Column 3` = c("A", "B"))
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_association.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_bivariate.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' vars1 <- choices_selected(
#' variable_choices(data[["ADSL"]], c("ARM", "COUNTRY", "SEX")),
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_response.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_scatterplotmatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#' })
#' datanames <- c("ADSL", "ADRS")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_missing_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' })
#' datanames <- c("ADSL", "ADRS")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' fact_vars_adsl <- names(Filter(isTRUE, sapply(data[["ADSL"]], is.factor)))
#' vars <- choices_selected(variable_choices(data[["ADSL"]], fact_vars_adsl))
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_crosstable.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' })
#' datanames <- c("ADSL")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#' })
#' datanames <- c("ADSL", "ADTTE")
#' datanames(data) <- datanames
#' join_keys(data) <- cdisc_join_keys(!!!datanames)
#' join_keys(data) <- default_cdisc_join_keys[datanames]
#'
#' app <- teal::init(
#' data = data,
Expand Down
2 changes: 1 addition & 1 deletion man/tm_a_pca.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/tm_a_regression.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/tm_data_table.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/tm_front_page.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/tm_g_association.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/tm_g_bivariate.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/tm_g_distribution.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/tm_g_response.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/tm_g_scatterplot.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/tm_g_scatterplotmatrix.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/tm_missing_data.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/tm_outliers.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/tm_t_crosstable.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/tm_variable_browser.Rd

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

4 changes: 2 additions & 2 deletions vignettes/teal-modules-general.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data <- within(data, {
})
datanames <- c("ADSL", "ADTTE")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
join_keys(data) <- default_cdisc_join_keys[datanames]
# nolint end
app <- teal::init(
Expand Down Expand Up @@ -93,7 +93,7 @@ data <- within(data, {
})
datanames <- c("ADSL", "ADTTE")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
join_keys(data) <- default_cdisc_join_keys[datanames]
# nolint end
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/using-association-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ data <- within(data, {
TRUE ~ "-"
)))
})
datanames <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
datanames(data) <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADRS", "ADTTE", "ADLB")]
join_keys(data)["ADSL2"] <- get_cdisc_keys("ADSL")
# nolint end
Expand Down
5 changes: 2 additions & 3 deletions vignettes/using-bivariate-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ data <- within(data, {
TRUE ~ "-"
)))
})
datanames <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
datanames(data) <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADRS", "ADTTE", "ADLB")]
join_keys(data)["ADSL2"] <- get_cdisc_keys("ADSL")
# nolint end
```
Expand Down
2 changes: 1 addition & 1 deletion vignettes/using-cross-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data <- within(data, {
})
datanames <- c("ADSL", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
join_keys(data) <- default_cdisc_join_keys[datanames]
# nolint end
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/using-data-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ data <- within(data, {
})
datanames <- c("ADSL", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
join_keys(data) <- default_cdisc_join_keys[datanames]
# nolint end
```

Expand Down
2 changes: 1 addition & 1 deletion vignettes/using-outliers-module.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ data <- within(data, {
})
datanames <- c("ADSL", "ADRS", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
join_keys(data) <- default_cdisc_join_keys[datanames]
# nolint end
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/using-regression-plots.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ data <- within(data, {
TRUE ~ "-"
)))
})
datanames <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
datanames(data) <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADRS", "ADTTE", "ADLB")]
join_keys(data)["ADSL2"] <- get_cdisc_keys("ADSL")
# nolint end
```
Expand Down
5 changes: 2 additions & 3 deletions vignettes/using-response-plot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ data <- within(data, {
TRUE ~ "-"
)))
})
datanames <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
datanames(data) <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADRS", "ADTTE", "ADLB")]
join_keys(data)["ADSL2"] <- get_cdisc_keys("ADSL")
# nolint end
```
Expand Down
5 changes: 2 additions & 3 deletions vignettes/using-scatterplot-matrix.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ data <- within(data, {
TRUE ~ "-"
)))
})
datanames <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
datanames(data) <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADRS", "ADTTE", "ADLB")]
join_keys(data)["ADSL2"] <- get_cdisc_keys("ADSL")
# nolint end
```
Expand Down
5 changes: 2 additions & 3 deletions vignettes/using-scatterplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ data <- within(data, {
TRUE ~ "-"
)))
})
datanames <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
datanames(data) <- datanames
join_keys(data) <- cdisc_join_keys(!!!datanames)
datanames(data) <- c("ADSL", "ADSL2", "ADRS", "ADTTE", "ADLB")
join_keys(data) <- default_cdisc_join_keys[c("ADSL", "ADRS", "ADTTE", "ADLB")]
join_keys(data)["ADSL2"] <- get_cdisc_keys("ADSL")
# nolint end
```
Expand Down

0 comments on commit efe3e2c

Please sign in to comment.