rediect R console information in shiny app

Dear all,
I have a shiny application that allows me to launch a java program, after specifying different parameters values and input files. I launch this java program using the R command 'system'. This java program returns information in the R console window. I'd like to redirect this display directly to shiny. And to have this display not at the end of program execution but really in real-time. How can I do this?
Thank you for your help !

If you invoke it with the intern argument true, it will return what was going to the console as a character vector. So you want something like java_out <- system("my java program", intern = TRUE). You'll need to put an output widget in your UI and convert the character vector (one entry per line of program output) into whatever the output widget wants.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.