rsconnect

How to deploy shiny app to shinyapps.io from drake plan

不打扰是莪最后的温柔 提交于 2020-08-10 19:08:31
问题 This is a follow-on question from closing the loop on passing the app and data to a Shiny deployment function: How to use shiny app as a target in drake I would like to deploy a Shiny app directly from a drake plan as below. library(drake) library(shiny) plan <- drake_plan( cars_data = mtcars, deployment = custom_deployment_function(file_in("app.R"), cars_data) ) custom_shiny_deployment <- function(file, data_input) { rsconnect::deployApp( appFiles = file, appName = "cars", forceUpdate = TRUE