lorenzwalthert / strcode

Structure your code better.
https://lorenzwalthert.github.io/strcode1/
MIT License
50 stars 6 forks source link

Interface doesn't quite work on RStudio Server #6

Closed olyerickson closed 7 years ago

olyerickson commented 7 years ago

(These comments apply to the semantics branch)

After installing in RStudio Server (instead of local RStudio) the interface appears, but is grayed out. The user is able to type a section label name, but clicking on "Add Semantics" doesn't bring up the new fields for entry.

All of this does work on normal RStudio.

olyerickson commented 7 years ago

image

lorenzwalthert commented 7 years ago

Ok, interesting.

olyerickson commented 7 years ago

I've confirmed that it is a similar problem with other shiny gadgets, including this demo:

https://shiny.rstudio.com/articles/gadgets.html

This makes sense, since to work the gadgets would need to be hosted on whatever server RStudio Server is running on, not the user's local machine (which shiny is expecting)

I'll investigate and report back ;)

lorenzwalthert commented 7 years ago

Ok, seems we are on the right track then...

olyerickson commented 7 years ago

I've now tested several other Shiny Gadget examples with RStudio Server; basically, the Shiny model doesn't work there. The problem is that Siny wants to listen on http://127.0.0.1:6976 but that can't happen in the RStudio Server environment.

I'm now doing a bit of background research to see what UI models work for Addins that are expected to run on RStudio Server, esp. whether people somehow make Shiny Gadgets work...

olyerickson commented 7 years ago

The miniUI developers tell me that Shiny Gadgets should "just work" under RStudio Server, although their standard demos don't. This might be a problem with our installation (ie configuration); I'll let you know...

olyerickson commented 7 years ago

It's definitely a problem with our RStudio Server installation; Shiny Gadget examples tested on other RStudio Server deployments are working.

Sorry to have bothered you with this! On to more interesting issues ;)

lorenzwalthert commented 7 years ago

Never mind. So shall we close the issue then?