-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] Shiny interface deployed from RMarkdown script #799
Comments
@pablobernabeu thanks for the suggestion! Could you list out the steps that would be needed to accomplish this locally? My guess is that the change would need to be made in jupyter/repo2docker, and we'd basically need to add the logic in the R buildpack somewhere around here to decide "how" to launch a shiny server. As with most things R-related, it'd be great if we can get some guidance from the R community on this one. |
Thank you! This would be great. LocallyTo run the .rmd Shiny app locally, it just takes the following:
An example is available inside the 'Shiny-app' folder here: Binder Shiny interfaceFor the Shiny interface of Binder, I'd like to first mention that this type of Shiny app is relevant when there is a .rmd script that contains the string This feature would introduce a .rmd script into the equation of the Shiny interface. Therefore it might be necessary to protect existing repos that use the Shiny interface and might potentially contain a .rmd file with
then launch the .rmd script on Shiny with the two steps mentioned above. Eventually, this URL would run: https://mybinder.org/v2/gh/pablobernabeu/Modality-exclusivity-norms-747-Dutch-English-replication/master?urlpath=shiny/Shiny-app/ I'd be glad to provide any further info, to the best of my knowledge. |
…l as Section 3.2 at https://docs.rstudio.com/shiny-server/) Installing (at least trying to install) `rmarkdown` library (for background, see jupyterhub#799, as well as Section 3.2 at https://docs.rstudio.com/shiny-server/)
Hello! Loving the R, RStudio, Jupyter Notebook and Jupyter Lab functionality in repo2docker/MyBinder! It's been super useful for supporting the scientists I work with to publish their work. I have been trying to get RShiny from RMarkdown functionality to work on a Binder instance. Following what @pablobernabeu found in #891, I have only had success with the following (illustrative) repo configuration and Binder URLs:
The following URLs launch the RMarkdown as a Shiny app:
The following do not work:
In this illustrative example all While the implementation of an I am aware I could build on the |
Hi Kevin, Only to underscore the issue about subdirectories, I'll note that the last app you referred to is located in the main directory. In contrast, I have an example of another Rmd app located in a subdirectory, and this app cannot be launched, as it produces a However, the same app does launch when run inside the RStudio container: https://mybinder.org/v2/gh/pablobernabeu/Modality-exclusivity-norms-747-Dutch-English-replication/master?urlpath=rstudio |
an issue that was opened up in BinderHub (jupyterhub/binderhub#961) by @pablobernabeu :
Currently, running a Binder repo into the Shiny app interface (
?urlpath=shiny
) requires having a ui.R and a server.R script. I would like to make a feature request to enable a slightly different form of a Shiny app which is known as Flexdashboard.A Flexdashboard is based on a single Rmarkdown (.rmd) script, which may have any name. In RStudio, the app is run through 'Run Document'. In the R console, it's run with
rmarkdown::run('myfile.Rmd')
.An example may be found in this repo, inside the 'Shiny-app' folder. Currently, the app can be run with the 'Run Document' button in RStudio, but not through the
?urlpath=shiny
interface.Thank you very much
The text was updated successfully, but these errors were encountered: