1
votes

I am implementing an R shiny application. I am using cat and print to write to the console and be able to see what is going on.

In the server.R I have some calls to cat before the shinyServer function and they work well. I have though other calls to cat inside shinyServer and their content is not printed although the code is executed, I see the output in the web UI, they are in a reactive block. The UI.R uses a submitButton in case this makes a difference.

As far as I have read, cat should send to console unless redirected, what I am not doing. I am also using cat with file="" and file=stdout() to try avoid any redirection.

If I run the app from a shortcut on the console that gets open the situation is the same. Any ideas on what can be happening?

I use R 3.1.1 and R studio 0.98 in Windows 7.

1
@topchef no, I don't refer to this setting that shows the communication between client and server. I refer to include my own messages on the consolePicarus
Its very difficult to speculate on the answer without an example. I can suggest you check that the 'print' isnt at the end of any reactive expression. You can further look here where you can maybe use message("my personal msg") stackoverflow.com/questions/11533284/… or there stackoverflow.com/questions/12775085/…Pork Chop
I had similar problem: it disappeared after upgrading shiny package (I saw discussion thread about it but can't locate it anymore).topchef
found it: goo.gl/iYFGQ7topchef

1 Answers

0
votes

Upgrading shiny (currently 0.10.2.1) resolved this problem for me. Also, see related discussion here.