README.md

linkapp

Deploy named apps from a repository location into /data/shiny-server/ through symlinks or file copies. Inspired by rsconnect and allows the user to deploy any number of apps from a repo directory location into a shiny server location.

To deploy a shiny app named my_app that is located in the folder ./app/shiny1:

.libPaths("lib")

library(linkapp)

link_app("app/shiny1", name="my_app")

with output

deploying app: my_app
initializing app directory under /data/shiny-server
found 3 targets to deploy
 - linking 3 targets
 - copying 0 targets
building .Rprofile
adding restart.txt file
the app is deployed under key key70941da722d9

Notes - We set .libPaths first; linkapp will look there and generate a .Rprofile file in the app directory to link back to R packages - We also touch a restart.txt file in the app directory so that the shiny server restarts when we start the app - By default, the app gets symlinked to /data/shiny-server - If system_setup is TRUE then the following system calls are made - sudo usermod -a -G shiny <username> - sudo chown -R <username>:shiny <name> - sudo chmod -R g+rwx <name>



kylebmetrum/shinylinkapp documentation built on May 20, 2019, 7:30 p.m.