Skip to content

Commit bd8fee0

Browse files
committed
Fix documentation
1 parent 595e833 commit bd8fee0

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

R/tm_variable_browser.R

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,6 @@ var_summary_table <- function(x, numeric_as_factor, dt_rows, outlier_definition)
605605
#'
606606
#' @inheritParams shared_params
607607
#' @param qenv teal_data object were code should be evaluated.
608-
#' @param var vector of any type to be plotted. For numeric variables it produces histogram with
609-
#' density line, for factors it creates frequency plot
610-
#' @param var_lab text describing selected variable to be displayed on the plot
611608
#' @param wrap_character (`numeric`) number of characters at which to wrap text values of `var`
612609
#' @param numeric_as_factor (`logical`) should the numeric variable be treated as a factor
613610
#' @param display_density (`logical`) should density estimation be displayed for numeric values
@@ -890,10 +887,8 @@ get_plotted_data <- function(input, plot_var, data) {
890887
teal.reporter::teal_card(obj),
891888
teal.reporter::teal_card("## Module's output(s)")
892889
)
893-
within(obj,
894-
{
895-
library(dplyr)
896-
library(ggplot2)
890+
teal.code::eval_code(obj, "library(ggplot2)") |>
891+
within({
897892
ANL <- select(dataset_name, varname)
898893
},
899894
dataset_name = as.name(dataset_name),

man/plot_var_summary.Rd

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)