I want to build an R Shiny app which creates a table showing input values from user and sums the up for the two numeric input variables.
I have defined the following input
# Define UI for application that returns table based on input values
ui <- fluidPage(
# Application title
titlePanel("Jack & Jones battle over the Castle!"),
# Input
dateInput('date', "Choose today's date:", value = NULL, min = NULL, max = NULL,
format = "yyyy-mm-dd", startview = "month", weekstart = 0,
language = "en", width = NULL),
numericInput("Score Jack", label = "Submit Score Jack", value = 0, min = 0, max = 300, step = 1, width = '10%'),
numericInput("Score Jones", label = "Submit Score Jones", value = 0, min = 0, max = 300, step = 1, width = '10%'),
submitButton("Submit Scores", icon("Submit") , width = NULL)
)
As an output I would like to return a table with a new row for each of the inputs e.g. three columns (date, score Jack, score Jones) and a row at the end of the table to sum the two score columns when the 'Submit' button is used. I've tried to work with the renderTable function, but so far yielded no results. When searching for similar questions, I found work arounds using the DT package. However, it does no seem to exist anymore.
I'm new to Shiny so would appreciate any input.