Listening on http://127.0.0.1:3558
Error in read.table(file = file, header = header, sep = sep, quote = quote, :
'file' must be a character string or connection
file <- read.csv(file=input$file1,head=TRUE,sep=",", stringsAsFactors=FALSE)
csv <- str(file)
inFile <- input$file1
csv <- read.csv(inFile$datapath, header=TRUE, sep=",")
The resolution was to use datapath property of the input file and not the file itself.