Skip to content

Commit

Permalink
update type to record_name in metalite_table1 function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
elong0527 committed Nov 15, 2023
1 parent fd0099a commit b8b4e32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions R/metalite_table1.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' Default is to show the row for the first variable.
#' @param download a character value to enable download button. Allowed values include
#' "none", "listing", "table", and 'all'.
#' @param type a character value to control section title (e.g. "Subjects", "Records").
#' @param record_name a character value to control section title (e.g. "Subjects", "Records").
#' @param ... additional arguments passed to `reactable`. More details refer \url{https://glin.github.io/reactable/reference/reactable.html}
#'
#' @return a `shiny.tag.list` object that contain a `reactable` HTML widget for
Expand All @@ -28,7 +28,7 @@ metalite_table1 <- function(formula,
total = TRUE,
header = NULL,
download = "none",
type = NULL,
record_name = NULL,
...) {
if (nrow(data) == 0) {
stop("There is no records in the input dataset")
Expand Down Expand Up @@ -114,7 +114,7 @@ metalite_table1 <- function(formula,
meta,
var_listing = var_listing,
download = download,
type = type
type = record_name
))
)
}
Expand Down
4 changes: 2 additions & 2 deletions man/metalite_table1.Rd

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

0 comments on commit b8b4e32

Please sign in to comment.