| 
27 | 27 | #'  | 
28 | 28 | #' @inherit shared_params return  | 
29 | 29 | #'  | 
30 |  | -#' @examples  | 
31 |  | -#' library(teal.widgets)  | 
32 |  | -#'  | 
 | 30 | +#' @examplesShinylive  | 
 | 31 | +#' library(teal.modules.general)  | 
 | 32 | +#' interactive <- function() TRUE  | 
 | 33 | +#' {{ next_example }}  | 
 | 34 | +# nolint start: line_length_linter.  | 
 | 35 | +#' @examplesIf require("ggpmisc", quietly = TRUE) && require("ggpp", quietly = TRUE) && require("goftest", quietly = TRUE) && require("MASS", quietly = TRUE) && require("broom", quietly = TRUE)  | 
 | 36 | +# nolint end: line_length_linter.  | 
33 | 37 | #' # general data example  | 
34 | 38 | #' data <- teal_data()  | 
35 | 39 | #' data <- within(data, {  | 
 | 
44 | 48 | #'       dist_var = data_extract_spec(  | 
45 | 49 | #'         dataname = "iris",  | 
46 | 50 | #'         select = select_spec(variable_choices("iris"), "Petal.Length")  | 
47 |  | -#'       ),  | 
48 |  | -#'       ggplot2_args = ggplot2_args(  | 
49 |  | -#'         labs = list(subtitle = "Plot generated by Distribution Module")  | 
50 | 51 | #'       )  | 
51 | 52 | #'     )  | 
52 | 53 | #'   )  | 
 | 
55 | 56 | #'   shinyApp(app$ui, app$server)  | 
56 | 57 | #' }  | 
57 | 58 | #'  | 
 | 59 | +#' @examplesShinylive  | 
 | 60 | +#' library(teal.modules.general)  | 
 | 61 | +#' interactive <- function() TRUE  | 
 | 62 | +#' {{ next_example }}  | 
 | 63 | +# nolint start: line_length_linter.  | 
 | 64 | +#' @examplesIf require("ggpmisc", quietly = TRUE) && require("ggpp", quietly = TRUE) && require("goftest", quietly = TRUE) && require("MASS", quietly = TRUE) && require("broom", quietly = TRUE)  | 
 | 65 | +# nolint end: line_length_linter.  | 
58 | 66 | #' # CDISC data example  | 
59 | 67 | #' data <- teal_data()  | 
60 | 68 | #' data <- within(data, {  | 
 | 
94 | 102 | #'           vars = vars1,  | 
95 | 103 | #'           multiple = TRUE  | 
96 | 104 | #'         )  | 
97 |  | -#'       ),  | 
98 |  | -#'       ggplot2_args = ggplot2_args(  | 
99 |  | -#'         labs = list(subtitle = "Plot generated by Distribution Module")  | 
100 | 105 | #'       )  | 
101 | 106 | #'     )  | 
102 | 107 | #'   )  | 
 | 
0 commit comments