Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Nov 6, 2024
1 parent e12dadc commit c02d16f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions R/modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ modules <- function(..., label = "root") {
#' @param is_root (`logical(1)`) Whether this is the root node of the tree. Only used in
#' format.teal_modules(). Determines whether to show "TEAL ROOT" header
#' @param what (`character`) Specifes which metadata to display.
#' Possible values: "data", "properties", "ui_args", "server_args", "transformers"
#' Possible values: "datasets", "properties", "ui_args", "server_args", "transformers"
#' @export
format.teal_module <- function(
x, indent = 0, is_last = FALSE, parent_prefix = "",
what = c("data", "properties", "ui_args", "server_args", "transformers"), ...) {
what = c("datasets", "properties", "ui_args", "server_args", "transformers"), ...) {
empty_text <- "NULL"
branch <- if (is_last) "└─" else "├─"
current_prefix <- paste0(parent_prefix, branch, " ")
Expand All @@ -357,7 +357,7 @@ format.teal_module <- function(

output <- pasten(current_prefix, crayon::bgWhite(x$label))

if ("data" %in% what) {
if ("datasets" %in% what) {
output <- paste0(
output,
content_prefix, "├─ ", crayon::yellow("Datasets : "), paste(x$datanames, collapse = ", "), "\n"
Expand Down
4 changes: 2 additions & 2 deletions man/teal_modules.Rd

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

0 comments on commit c02d16f

Please sign in to comment.