so I have a Shiny app where I'm trying to read in a user-identified input file.
Towards that end, my ui.R has the line
fileInput("predictor2", label = "Predictor Values")
predictor <- read.delim("input$predictor2")
Error: Cannot open the connection
You code is looking for a file with the literal name
input$predictor2 which presumably does not exist. You first need to remove the quotes from around it, then add which column of the return actually has the path to the data, e.g.:
See the help for
fileInput for an example that checks to make sure something has been uploaded first.