deployApp(appDir = getwd(), appFiles = NULL, appPrimaryDoc = NULL, appSourceDoc = NULL, appName = NULL, contentCategory = NULL, account = NULL, server = NULL, upload = TRUE, launch.browser = getOption("shinyapps.launch.browser", interactive()), quiet = FALSE, lint = TRUE, metadata = list(), ...)
upload =
TRUE
). Can be NULL
, in which case all the files in the directory
containing the application are bundled.appDir
.
Can be NULL
, in which case the primary document is inferred from the
contents being deployed.deployments
is associated with the source document.appDir
."plot"
, "document"
, or "application"
).TRUE
(the default) then the application is uploaded
from the local system prior to deployment. If FALSE
then it is
re-deployed using the last version that was uploaded.TRUE
in
interactive sessions only.deployments
.applications
, terminateApp
, and
restartApp
## Not run:
#
# # deploy the application in the current working dir
# deployApp()
#
# # deploy an application in another directory
# deployApp("~/projects/shiny/app1")
#
# # deploy using an alternative application name
# deployApp("~/projects/shiny/app1", appName = "myapp")
#
# # deploy specifying an explicit account name, then
# # redeploy with no arguments (will automatically use
# # the previously specified account)
# deployApp(account = "jsmith")
# deployApp()
#
# # deploy but don't launch a browser when completed
# deployApp(launch.browser = FALSE)
# ## End(Not run)
Run the code above in your browser using DataLab