Skip to content

Commit af4143a

Browse files
llrs-rochegogonzo
andauthored
Apply suggestions from code review
Co-authored-by: Dawid Kałędkowski <[email protected]> Signed-off-by: Lluís Revilla <[email protected]>
1 parent e2ebc56 commit af4143a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/tm_data_table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
#'
8787
tm_data_table <- function(label = "Data Table",
8888
variables_selected = list(),
89-
datasets_selected = NULL,
90-
datanames = NULL,
89+
datasets_selected = "all",
90+
datanames = datasets_selected,
9191
dt_args = list(),
9292
dt_options = list(
9393
searching = FALSE,

R/tm_missing_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
tm_missing_data <- function(label = "Missing data",
110110
plot_height = c(600, 400, 5000),
111111
plot_width = NULL,
112-
datanames = NULL,
112+
datanames = "all",
113113
parent_dataname = "ADSL",
114114
ggtheme = c("classic", "gray", "bw", "linedraw", "light", "dark", "minimal", "void"),
115115
ggplot2_args = list(
@@ -163,7 +163,7 @@ tm_missing_data <- function(label = "Missing data",
163163
ans <- module(
164164
label,
165165
server = srv_page_missing_data,
166-
datanames = if (length(datanames) == 0) "all" else datanames,
166+
datanames = datanames,
167167
server_args = list(
168168
parent_dataname = parent_dataname,
169169
plot_height = plot_height,

0 commit comments

Comments
 (0)