Skip to content

Commit

Permalink
feat: collapse vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Jul 10, 2024
1 parent 14ba3ef commit 4178bf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/ui/ui-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ addSettings <- function(ns, session, file) {
val <- .subset2(session, "parent")$input[[x]]
if (is.null(val)) val <- ""
if (any(nchar(val) > 30)) val <- paste0(substr(val, 1, 30), "...")
val <- paste(val, collapse = ", ")
return(val)
}) |> unlist()
# Merge values and input names (without namespacing)
Expand All @@ -277,6 +278,8 @@ addSettings <- function(ns, session, file) {
plot_settings_values <- lapply(plot_settings, function(x){
val <- .subset2(session, "parent")$input[[x]]
if (is.null(val)) val <- ""
if (any(nchar(val) > 30)) val <- paste0(substr(val, 1, 30), "...")
val <- paste(val, collapse = ", ")
return(val)
}) |> unlist()
# Merge values and input names (without namespacing)
Expand Down

0 comments on commit 4178bf9

Please sign in to comment.