You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# shinydocker <ahref="https://r-pkgs.thecoatlessprofessor.com/shinydocker/"><imgsrc="man/figures/shinydocker-animated-logo.svg"align="right"height="138"alt="hex logo for shinydocker" /></a>
`shinydocker` is an R package that streamlines the process of containerizing Shiny applications, supporting both R and Python Shiny apps.
23
+
`shinydocker` simplifies containerizing Shiny applications by automatically generating Docker configurations, building images, and managing containers. It supports both R and Python Shiny apps with intelligent detection of app type and dependencies.
24
+
25
+
> [!IMPORTANT]
26
+
>
27
+
> This package is currently in the prototype/experimental stage. It is not yet
28
+
> available on CRAN and may have bugs or limitations.
31
29
32
30
## Installation
33
31
@@ -40,105 +38,225 @@ You can install the development version of `shinydocker` from GitHub with:
You will also need to have Docker installed on your system. You can download Docker from the [official website](https://www.docker.com/products/docker-desktop). You do not need to
44
-
log in to Docker to use `shinydocker`.
41
+
### Prerequisites
42
+
43
+
- R (>= 4.4.0)
44
+
-[Docker](https://www.docker.com/products/docker-desktop) installed and running (no login required)
45
+
- Optionally, [Docker Compose](https://docs.docker.com/compose/install/) for more advanced container management
45
46
46
-
## Using shinydocker
47
+
## Quick Start
47
48
48
-
The package provides a set of functions to automate the process, as well as options for advanced configuration.
49
+
With `shinydocker`, you can containerize your Shiny app in just a few lines of code.
50
+
Here's two ways to get started with the package!
49
51
50
-
### Exporting a Shiny App to Docker
52
+
### One-Command Export
51
53
52
-
The `export()` function allows you to convert a Shiny application into a docker
53
-
containerized application.
54
+
The simplest way to containerize a Shiny app is to use the `shinydocker::export()` function:
54
55
55
56
```{r}
56
-
#| label: export-shiny-app-to-docker-generic
57
+
#| label: quick-export
57
58
#| eval: false
58
-
# Automated export: configures, builds, and optionally runs the container
59
-
export("path/to/your/shinyapp", run = TRUE)
59
+
library(shinydocker)
60
+
61
+
# Export app to Docker with a single command (detects app type automatically)
62
+
shinydocker::export("path/to/your/shinyapp", run = TRUE)
60
63
```
61
64
62
-
For example, to convert the "Hello World" Shiny app from the `{shiny}` package
63
-
into a standalone Electron app:
65
+
### Example: Converting the "Hello World" Shiny App
66
+
67
+
To get started, let's convert the classic "Hello World" Shiny app to a Docker container:
0 commit comments