Skip to content

Commit

Permalink
proper examples -> examplesIf
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru committed Aug 20, 2024
1 parent 33f7d9d commit 095b6cb
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 48 deletions.
4 changes: 2 additions & 2 deletions R/tm_g_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examplesIf all(vapply(c("ggpmisc", "ggpp", "goftest"), requireNamespace, logical(1), quietly = TRUE))
#' @examplesIf require("ggpmisc", quietly = TRUE) && require("ggpp", quietly = TRUE) && require("goftest", quietly = TRUE) && require("MASS", quietly = TRUE) && require("broom", quietly = TRUE)

Check warning on line 34 in R/tm_g_distribution.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_distribution.R,line=34,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 193 characters.
#' # general data example
#' data <- teal_data()
#' data <- within(data, {
Expand All @@ -58,7 +58,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examplesIf all(vapply(c("ggpmisc", "ggpp", "goftest"), requireNamespace, logical(1), quietly = TRUE))
#' @examplesIf require("ggpmisc", quietly = TRUE) && require("ggpp", quietly = TRUE) && require("goftest", quietly = TRUE) && require("MASS", quietly = TRUE) && require("broom", quietly = TRUE)

Check warning on line 61 in R/tm_g_distribution.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_distribution.R,line=61,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 193 characters.
#' # CDISC data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down
4 changes: 2 additions & 2 deletions R/tm_g_scatterplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examplesIf requireNamespace("ggpmisc", quietly = TRUE) && requireNamespace("ggExtra", quietly = TRUE)
#' @examplesIf require("ggpmisc", quietly = TRUE) && require("ggExtra", quietly = TRUE) && require("colourpicker", quietly = TRUE)

Check warning on line 37 in R/tm_g_scatterplot.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_scatterplot.R,line=37,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 130 characters.
#' # general data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down Expand Up @@ -122,7 +122,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examplesIf requireNamespace("ggpmisc", quietly = TRUE) && requireNamespace("ggExtra", quietly = TRUE)
#' @examplesIf require("ggpmisc", quietly = TRUE) && require("ggExtra", quietly = TRUE) && require("colourpicker", quietly = TRUE)

Check warning on line 125 in R/tm_g_scatterplot.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_scatterplot.R,line=125,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 130 characters.
#' # CDISC data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down
4 changes: 2 additions & 2 deletions R/tm_g_scatterplotmatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examples
#' @examplesIf require("lattice", quietly = TRUE)
#' # general data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down Expand Up @@ -110,7 +110,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examples
#' @examplesIf require("lattice", quietly = TRUE)
#' # CDISC data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down
4 changes: 2 additions & 2 deletions R/tm_missing_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examples
#' @examplesIf require("gridExtra", quietly = TRUE) && require("rlang", quietly = TRUE)
#' # general example data
#' data <- teal_data()
#' data <- within(data, {
Expand Down Expand Up @@ -56,7 +56,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examples
#' @examplesIf require("gridExtra", quietly = TRUE) && require("rlang", quietly = TRUE)
#' # CDISC example data
#' data <- teal_data()
#' data <- within(data, {
Expand Down
4 changes: 2 additions & 2 deletions R/tm_t_crosstable.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examples
#' @examplesIf require("rtables", quietly = TRUE)
#' # general data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down Expand Up @@ -79,7 +79,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examples
#' @examplesIf require("rtables", quietly = TRUE)
#' # CDISC data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down
4 changes: 2 additions & 2 deletions R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examplesIf requireNamespace("sparkline", quietly = TRUE)
#' @examplesIf require("sparkline", quietly = TRUE) && require("htmlwidgets", quietly = TRUE) && require("jsonlite", quietly = TRUE)

Check warning on line 28 in R/tm_variable_browser.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_variable_browser.R,line=28,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 132 characters.
#' # general data example
#' data <- teal_data()
#' data <- within(data, {
Expand Down Expand Up @@ -53,7 +53,7 @@
#' library(teal.modules.general)
#' interactive <- function() TRUE
#' {{ next_example }}
#' @examplesIf requireNamespace("sparkline", quietly = TRUE)
#' @examplesIf require("sparkline", quietly = TRUE) && require("htmlwidgets", quietly = TRUE) && require("jsonlite", quietly = TRUE)

Check warning on line 56 in R/tm_variable_browser.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_variable_browser.R,line=56,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 132 characters.
#' # CDISC example data
#' library(sparkline)
#' data <- teal_data()
Expand Down
12 changes: 6 additions & 6 deletions man/tm_g_distribution.Rd

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

Loading

0 comments on commit 095b6cb

Please sign in to comment.