Hosting and setting up own shiny apps without shiny server

前端 未结 4 1419
-上瘾入骨i
-上瘾入骨i 2020-12-02 03:37

I\'m trying to make shiny apps available to my coworkers without them having to run or even have R installed.

So I read this webpage and found this sentence:

4条回答
  •  無奈伤痛
    2020-12-02 04:07

    Sharing apps over the LAN like this is pretty cool, but it is kind of a hack. I tried it with some co-workers, and it works, but it is more of an office trick than a sustainable solution.

    I just finished developing the RInno package for this exact problem, i.e. when a company will not pay for Shiny Server or there are security concerns with cloud services.

    To get started:

    install.packages("RInno")
    require(RInno)
    RInno::install_inno()
    

    Then you just need to call two functions to create an installation framework:

    create_app(app_name = "myapp", app_dir = "path/to/myapp")
    compile_iss()
    

    If you would like to include R for your co-workers who don't have it installed, add include_R = TRUE to create_app:

    create_app(app_name = "myapp", app_dir = "path/to/myapp", include_R = TRUE)
    

    It defaults to include shiny, magrittr and jsonlite, so if you are using other packages like ggplot2 or plotly, just add them to the pkgs argument. You can also include GitHub packages to the remotes argument:

    create_app(
        app_name = "myapp", 
        app_dir  = "path/to/myapp"
        pkgs     = c("shiny", "jsonlite", "magrittr", "plotly", "ggplot2"),
        remotes  = c("talgalili/installr", "daattali/shinyjs"))
    

    If you are interested in other features, check out FI Labs - RInno

提交回复
热议问题