Herramientas de usuario

Herramientas del sitio


personas:brolin:data_analisis:shiny

¡Esta es una revisión vieja del documento!


Tabla de Contenidos

Shiny

Shinyapps

https://github.com/rstudio/shinyapps
http://shiny.rstudio.com/articles/shinyapps.html

Deploy a shiny app to service shinnyapps.io

install.packages('rsconnect')
library(rsconnect)

Configure rsconnect si es la primera vez

deployApp()

Shiny Server

7.1.2 Let users manage their own applications

Some administrators of Shiny Server would prefer to give users – or some trusted subgroup of users – the ability to manage and host their own Shiny applications. This allows users to work directly with their applications rather than requiring an administrator to deploy and update applications on their behalf. This guide will document how to create such an environment using the user_dirs directive documented in the section named Host Per-User Application Directories.

To more conveniently use this Quick Start guide, we provide a convenient executable in /opt/shiny-server/bin/deploy-example that can configure Shiny Server to use the example configuration file associated with this guide (by placing it in /etc/shiny-server/shiny-server.conf). It will also install a directory of example applications. Be sure to backup your current configuration file if you've done any customizing, then run the following command:

sudo /opt/shiny-server/bin/deploy-example user-dirs

This configuration enables all users on the system to host their own applications by creating a ShinyApps directory in their home directory; you can always alter the configuration file later to tailor it to meet your needs. You can deploy an application under your username by copying an example that comes with Shiny Server into your own ShinyApps directory. To do this, copy that entire /opt/shiny-server/samples/sample-apps/hello/ directory into ~/ShinyApps using the following command:

mkdir ~/ShinyApps sudo cp -R /opt/shiny-server/samples/sample-apps/hello ~/ShinyApps/

If that command succeeds, you've successfully installed a user_dirs Shiny application!

By default, Shiny Server listens on port 3838, so your new application will be available at http:<server-address>:3838/<your_username>/hello where <your_username> is your Linux username. If you wanted to restrict the privilege of running Shiny applications to a particular set of users on your system, you can uncomment the members_of line in the configuration file. You can then specify the Linux group name of which a user must be a member before he or she would be allowed to host Shiny applications.”1) ==== Enable bookmarking state==== bookmarking-state.html https://www.datacamp.com/courses/building-web-applications-in-r-with-shiny Como montar un servidor de shiny https://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/** ==== Referentes ==== * https://www.r-bloggers.com/experiences-building-a-production-shiny-app-for-mobile/ * https://www.r-bloggers.com/make-r-shiny-dashboards-faster-with-updateinput-css-and-javascript/

personas/brolin/data_analisis/shiny.1597714605.txt.gz · Última modificación: 2020/08/18 01:36 por brolin