6

I was trying to use rgl plot in shiny,but somehow it is throwing error:

'You must enable Javascript to view this page properly'.

Javascript is already enabled. I used 'shinyRGL' library in R to display its output,but failed.

Kindly help!

Micho
  • 3,929
  • 13
  • 37
  • 40

1 Answers1

1

There seems to be a bug with shinyRGL 0.95.1247. Here is the thread on GitHub started May 4th, 2015. In sum, previous versions of shinyRGL worked properly, but the upgrade to 0.95.1247 causes this error to be reported in FireFox, and a similar error in Chrome and Safari.

Drakes
  • 23,254
  • 3
  • 51
  • 94
  • I even tried installing older packages,but it also failed. I have 0.95.1247 version of rgl package and struggling to get the crack. Help please. – Dharmesh Manglani Jun 15 '15 at 07:11
  • In light of that information, can you post some of your code for us? – Drakes Jun 15 '15 at 07:44
  • #ui.R shinyUI(fluidPage( titlePanel(strong('Executive Path Finder')), sidebarLayout( sidebarPanel( ), mainPanel( webGLOutput ('NetDiag'))))) #server.R shinyServer(function(input, output) { output$NetDiag <- renderWebGL({ J=path(input$Person1,input$Person2,input$Degree) g<-graph.data.frame(J) coords <- layout.fruchterman.reingold(g, dim=3) V(g)[V(g)$name == input$Person1]$color <- "green" rglplot(g,layout=coords,vertex.label.dist=0.25,vertex.label.font=0.2,vertex.label.color='black',vertex.label.cex=.6,edge.arrow.size=0) }) }) – Dharmesh Manglani Jun 15 '15 at 08:39
  • I got the same error MSG when I run an shinyRGL example. Does anybody know how to solve it? Thank you. – cutebunny Aug 12 '15 at 17:56
  • 1
    Quick update, the package maintainer Jeff Allen postet a fix in the README.MD: Install a working RGL version clone from his github via devtools: `install_github("rgl", "trestletech", "js-class")` (Make sure you do this in a fresh R session with rgl unloaded or even better, already removed from your library) – zerweck Aug 26 '15 at 19:51