From 71fa0091c0f41d95ed8d9ed840c6a657e3a71a3a Mon Sep 17 00:00:00 2001 From: Danielle Callan Date: Wed, 29 Nov 2023 23:08:50 -0500 Subject: [PATCH] make sure we always have a data2 var --- R/server.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/server.R b/R/server.R index 4e0fd8e..46ca2b3 100644 --- a/R/server.R +++ b/R/server.R @@ -37,6 +37,8 @@ server <- function(input, output, session) { data1 <- readData(file1) if (!is.null(file2)) { data2 <- readData(file2) + } else { + data2 <- NULL } lastData1ColIndex <- length(data1)