From c02d16fc86be99ff9dc461a72bf1d8cc6ef1dfa6 Mon Sep 17 00:00:00 2001 From: vedhav Date: Wed, 6 Nov 2024 18:47:48 +0530 Subject: [PATCH] chore: rename --- R/modules.R | 6 +++--- man/teal_modules.Rd | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/R/modules.R b/R/modules.R index b010f79f1a..bacbbcb73e 100644 --- a/R/modules.R +++ b/R/modules.R @@ -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, " ") @@ -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" diff --git a/man/teal_modules.Rd b/man/teal_modules.Rd index b6feda148e..840b140d47 100644 --- a/man/teal_modules.Rd +++ b/man/teal_modules.Rd @@ -31,7 +31,7 @@ modules(..., label = "root") 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"), ... ) @@ -107,7 +107,7 @@ Affects the tree branch character used (└─ vs ├─)} used to maintain the tree structure in nested levels} \item{what}{(\code{character}) Specifes which metadata to display. -Possible values: "data", "properties", "ui_args", "server_args", "transformers"} +Possible values: "datasets", "properties", "ui_args", "server_args", "transformers"} \item{is_root}{(\code{logical(1)}) Whether this is the root node of the tree. Only used in format.teal_modules(). Determines whether to show "TEAL ROOT" header}