I noticed that "\n" doesn't do anything in cat when called as a shiny textOutput. How can I add a new line to a text output in shiny?
.....
output$Text <- renderPrint({
....
text1 <- paste("Test 1 of length ", input$test1," hours : ",MaxFailFun(TL[1], input$TRV, input$CL ) ,sep="")
# Add text entries for last two tests if selected by user
if(length(colnames(df)>2)){
if ("Test2" %in% colnames(df)){
text2 <- paste("Test 2 of length ", input$test2," hours : ",MaxFailFun(TL[2], input$TRV, input$CL ) ,sep="")
}
if ("Test3" %in% colnames(df)){
text3 <- paste("Test 3 of length ", input$test3," hours : ",MaxFailFun(TL[3], input$TRV, input$CL ) ,sep="")
}
}
cat(paste(text1, text2, text3, sep="\n"))
})
....
.....
....