Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ VignetteBuilder:
knitr,
rmarkdown
Remotes:
insightsengineering/teal,
insightsengineering/teal.reporter
insightsengineering/teal@400-skip_headers_when_no_code,
insightsengineering/teal.reporter@400-skip_headers_when_no_code
Config/Needs/verdepcheck: haleyjeppson/ggmosaic, tidyverse/ggplot2,
rstudio/shiny, insightsengineering/teal,
insightsengineering/teal.transform, mllg/checkmate, tidyverse/dplyr,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_a_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ srv_a_pca <- function(id, data, dat, plot_height, plot_width, ggplot2_args, deco
c(
teal.reporter::teal_card("# Principal Component Analysis"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr");library("tidyr")') # nolint: quotes
})
Expand Down
5 changes: 3 additions & 2 deletions R/tm_a_regression.R
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ srv_a_regression <- function(id,
c(
teal.reporter::teal_card("# Linear Regression Plot"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr")') # nolint: quotes
})
Expand Down Expand Up @@ -540,8 +540,9 @@ srv_a_regression <- function(id,
})) %>%
teal.code::eval_code(quote({
fit_summary <- summary(fit)
fit_summary
}))
teal.reporter::teal_card(anl_fit) <- c(teal.reporter::teal_card(anl_fit), "## Fit summary")
anl_fit <- anl_fit %>% within(fit_summary)
teal.reporter::teal_card(anl_fit) <- c(teal.reporter::teal_card(anl_fit), "## Plot")
anl_fit
})
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 @@ -347,7 +347,7 @@ srv_tm_g_association <- function(id,
c(
teal.reporter::teal_card("# Association Plot"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
teal.code::eval_code(obj, 'library("ggplot2");library("dplyr");library("ggmosaic")') # nolint: quotes
})
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 @@ -560,7 +560,7 @@
c(
teal.reporter::teal_card("# Bivariate Plot"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk(teal.reporter::pseudo_code_chunk("## Module's code")))

Check warning on line 563 in R/tm_g_bivariate.R

View workflow job for this annotation

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

file=R/tm_g_bivariate.R,line=563,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 122 characters.
)
obj %>%
teal.code::eval_code(
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 @@ -638,7 +638,7 @@ srv_distribution <- function(id,
c(
teal.reporter::teal_card("# Distribution Plot"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)

ANL <- obj[["ANL"]]
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 @@ -412,7 +412,7 @@ srv_g_response <- function(id,
c(
teal.reporter::teal_card("# Response Plot"),
teal.reporter::teal_card(qenv),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
ANL <- qenv[["ANL"]]
resp_var <- as.vector(merged$anl_input_r()$columns_source$response)
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 @@ -589,7 +589,7 @@ srv_g_scatterplot <- function(id,
teal.reporter::teal_card(obj) <- c(
teal.reporter::teal_card("# Scatter Plot"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
teal.code::eval_code(data(), 'library("ggplot2");library("dplyr")') # nolint quotes
})
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 @@ -332,7 +332,7 @@ srv_g_scatterplotmatrix <- function(id,
teal.reporter::teal_card(obj) <- c(
teal.reporter::teal_card("# Scatter Plot Matrix"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
qenv <- teal.code::eval_code(obj, 'library("dplyr");library("lattice")') # nolint quotes
teal.code::eval_code(qenv, as.expression(anl_merged_input()$expr))
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 @@ -521,7 +521,7 @@ srv_missing_data <- function(id,
teal.reporter::teal_card(obj) <- c(
teal.reporter::teal_card("# Missing Data"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)

qenv <- teal.code::eval_code(obj, {
Expand Down
2 changes: 1 addition & 1 deletion R/tm_outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ srv_outliers <- function(id, data, outlier_var,
c(
teal.reporter::teal_card("# Outliers Analysis"),
teal.reporter::teal_card(qenv),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)

outlier_var <- as.vector(merged$anl_input_r()$columns_source$outlier_var)
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 @@ -333,7 +333,7 @@ srv_t_crosstable <- function(id, data, label, x, y, remove_zero_columns, basic_t
c(
teal.reporter::teal_card("# Cross Table"),
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's code")
teal.reporter::teal_card(teal.reporter::pseudo_code_chunk("## Module's code"))
)
teal.code::eval_code(obj, 'library("rtables");library("tern");library("dplyr")') # nolint quotes
})
Expand Down
Loading