r - How can I run my shiny app without calling library("shiny") beforehand? -
i apologize extremely noobish question, can't find answer. finished writing r shiny app , preparing send off network guy can load on company server.
however, run app, have commands:
>library("shiny") >runapp("myapp")
i don't want network guy have deal running library("shiny"), how can put in code? have
library(shiny)
in server.r
in addition, have many packages implemented, including googlevis, ggplot2, , reshape2. have these
library(reshape2) library(googlevis) library(ggplot2)
but when using app on new computer have use 'install.packages()'. network guy or app users have worry this?
thanks.
assuming have shiny
package installed on company's server, can call
shiny::runapp()
what ::
bringing symbol package hasn't being imported yet.
i have following shell script runapp
lets me run shiny apps command line:
#!/bin/bash r -e "shiny::runapp('$1')"
so can runapp directory-with-shiny-script/
, runs app.
Comments
Post a Comment