create_bundle | R Documentation |
Generate a 'deployment ready' bundle of the a project app
create_bundle(
project,
path = getwd(),
name = "MCView_bundle",
overwrite = FALSE,
self_contained = FALSE,
branch = "latest_release",
restart = overwrite,
permissions = NULL,
light_version = FALSE,
excluded_tabs = c("Gene modules", "Annotate", "Inner-fold", "Stdev-fold"),
shiny_cache_dir = NULL,
shiny_cache_max_size = NULL,
...
)
project |
path to the project directory |
path |
path in which to create the bundle. |
name |
name of the folder in which to create the bundle. The bundle would be created at |
overwrite |
overwrite bundle if already exists |
self_contained |
include the source code of |
branch |
name of the |
restart |
add a file named 'restart.txt' to the bundle. This would force shiny-server to restart the app when updated. |
permissions |
change the file permissions of the bundle after creation, e.g. "777". When NULL - permissions would not be changed. |
light_version |
create a light version of the bundle, which would not include features that require heavy computation (e.g. changing Marker genes, Gene modules etc.) |
excluded_tabs |
a character vector of tabs to exclude from the light version of the bundle. |
shiny_cache_dir |
a path to a directory in which to store shiny cache, can be relative to the bundle, e.g. "./shiny_cache". If set to TRUE, a temporary directory would be set. If NULL - shiny would cache objects in memory. |
shiny_cache_max_size |
maximum size of the shiny cache in bytes. Default is 200e6. |
... |
Arguments passed on to
|
Create a minimal shiny app in path
/name
directory which would contain:
app.R file.
project config and cache.
The bundle can then be deployed in shiny-server, shinyapps.io or any other environment that supports serving shiny apps.
Note: when deploying to these services - make sure you have the MCView package installed.
## Not run:
MCView::create_bundle(project = "PBMC", path = getwd(), name = "PBMC")
# latest release
MCView::create_bundle(project = "PBMC", path = getwd(), name = "PBMC", self_contained = TRUE)
# development version
MCView::create_bundle(
project = "PBMC",
path = getwd(),
name = "PBMC",
self_contained = TRUE,
branch = NULL
)
# specific branch
MCView::create_bundle(
project = "PBMC",
path = getwd(),
name = "PBMC",
self_contained = TRUE,
branch = "feat@atlas-projection"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.