From e91d198443f93db99319a13091dbffe6c35f8f46 Mon Sep 17 00:00:00 2001 From: m7pr Date: Thu, 14 Nov 2024 13:36:11 +0100 Subject: [PATCH] update examples --- R/teal_transform_module.R | 2 +- man/teal_data_module.Rd | 4 +--- man/teal_transform_module.Rd | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/R/teal_transform_module.R b/R/teal_transform_module.R index dca138917f..654e4216a2 100644 --- a/R/teal_transform_module.R +++ b/R/teal_transform_module.R @@ -103,7 +103,7 @@ #' output_decorator <- teal_transform_module( #' server = make_teal_transform_server( #' expression( -#' table <- rev(table) +#' object <- rev(object) #' ) #' ) #' ) diff --git a/man/teal_data_module.Rd b/man/teal_data_module.Rd index 683c6d9ef9..77a7805d4b 100644 --- a/man/teal_data_module.Rd +++ b/man/teal_data_module.Rd @@ -35,9 +35,7 @@ App user will be able to interact and change the data output from the module mul \item{object}{(\code{teal_data_module})} -\item{code}{(\code{character}, \code{language} or \code{expression}) code to evaluate. -It is possible to preserve original formatting of the \code{code} by providing a \code{character} or an -\code{expression} being a result of \code{parse(keep.source = TRUE)}.} +\item{code}{(\code{character} or \code{language}) code to evaluate. If \code{character}, comments are retained.} \item{data}{(\code{teal_data_module}) object} diff --git a/man/teal_transform_module.Rd b/man/teal_transform_module.Rd index 4e4b7e8cea..0bede146e2 100644 --- a/man/teal_transform_module.Rd +++ b/man/teal_transform_module.Rd @@ -118,7 +118,7 @@ data_transformators <- list( output_decorator <- teal_transform_module( server = make_teal_transform_server( expression( - table <- rev(table) + object <- rev(object) ) ) )