r - Shiny app for prediction with rpart displaying error -
i tried build shiny app. objective let user input csv file in input box. user can input dependent variable name in text box. main panel display summary details of model fit , plot. i have coded following ui.r : library(shiny) shinyui(fluidpage( titlepanel(h1("analysis",align = "center")), sidebarlayout( sidebarpanel( fileinput('file1', 'select csv file', accept=c('text/csv', 'text/comma-separated-values,text/plain', '.csv')), textinput("text", label = strong("dependent variable"), value = "enter dependent variable...") ), mainpanel(br(), textoutput('text1'), plotoutput('plot') ) ) )) the following server.r : library(shiny) library(rpart) library(rpart.plot) shinyserver(function(input, output) { ...