Ramkishore Swaminathan
2015-Jan-21 04:20 UTC
[R] “Could not find function observeEvent” in shiny
Hi fellow R community users, I am using the shiny server to build a webapp and am connect R with mongodb to fetch results from database and display it dynamically. The app executes fine on my localhost. I have deployed the shiny server on a ubuntu 12.04 machine and when I run giving the IP address along with the application path in the browser it throws the error "The application unexpectedly exited.Diagnostic information has been dumped to the JavaScript error console." I went and checked the mozilla browser console where it says Listening on http://127.0.0.1:35004 Error in (structure(function (input, output) : could not find function "observeEvent" " vload_controller:27 Even if I execute from the R console on the remote machine, it says runApp() Listening on http://127.0.0.1:6757 But a browser with the webapp does not open. The observeEvent function works fine on my localhost but not on the remote IP. Can somebody please help me? :) I have attached code and screenshot for the same. Thanks, Ramkishore -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-01-20 at 12.20.20 PM.png Type: image/png Size: 134465 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150121/3c293a8b/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-01-21 at 9.49.46 AM.png Type: image/png Size: 226403 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150121/3c293a8b/attachment-0001.png>
Cross-posted here: http://stackoverflow.com/questions/28039426/could-not-find-function-observeevent-in-shiny Cross-posting is considered to be impolite. Regards, Pascal On Wed, Jan 21, 2015 at 1:20 PM, Ramkishore Swaminathan <ramkishore31 at gmail.com> wrote:> Hi fellow R community users, > > I am using the shiny server to build a webapp and am connect R with mongodb > to fetch results from database and display it dynamically. > > The app executes fine on my localhost. > > I have deployed the shiny server on a ubuntu 12.04 machine and when I run > giving the IP address along with the application path in the browser it > throws the error > > "The application unexpectedly exited.Diagnostic information has been dumped > to the JavaScript error console." > > I went and checked the mozilla browser console where it says > > Listening on http://127.0.0.1:35004 Error in (structure(function (input, > output) : could not find function "observeEvent" " vload_controller:27 > > Even if I execute from the R console on the remote machine, it says > > runApp() > > Listening on http://127.0.0.1:6757 > > But a browser with the webapp does not open. > > The observeEvent function works fine on my localhost but not on the remote > IP. > > Can somebody please help me? :) > > I have attached code and screenshot for the same. > > > Thanks, > > Ramkishore > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Pascal Oettli Project Scientist JAMSTEC Yokohama, Japan