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
# Using r-shinylive for Static Shiny Apps in Quarto Documents
27
+
# Using r-shinylive for Serverless Shiny Apps in Quarto Documents
28
28
29
29
Are you interested in creating your own Quarto document with embedded static Shiny apps? This tutorial will guide you through the process of using the `r-shinylive` R package to achieve just that. Let's get started!
30
30
@@ -76,9 +76,7 @@ filters:
76
76
- shinylive
77
77
```
78
78
79
-
**Step 5:** Place your Shiny application code within your Quarto file (`.qmd`) as shown in the following example:
80
-
81
-
You can insert the code for a Shiny application in a code block marked with `{shinylive-r}`. Below is a skeletal example of how your code block might look:
79
+
**Step 5:** You can insert the code for a Shiny application in a code block marked with `{shinylive-r}`. Below is a skeletal example of how your code block might look:
82
80
83
81
````md
84
82
---
@@ -119,7 +117,6 @@ With this in mind, let's use Joe's shiny app inside our code block. So, we'll en
119
117
#| standalone: true
120
118
#| viewerHeight: 600
121
119
library(shiny)
122
-
library(bslib)
123
120
124
121
# Define UI for app that draws a histogram ----
125
122
ui <- page_sidebar(
@@ -140,8 +137,14 @@ server <- function(input, output, session) {
You can view a standalone version of Joe's app here: [R-shinylive-demo.qmd](https://github.com/coatless-quarto/r-shinylive-demo/blob/main/R-shinylive-demo.qmd)
Copy file name to clipboardexpand all lines: index.qmd
+4-6
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ For the demo, we're showing the source code used in Joe Cheng's [posit::conf(202
18
18
19
19
## Sample Application
20
20
21
-
We'll be walking through the process of creating the following R ShinyLive application. Please be aware that it may take some time to load.
21
+
We'll be walking through the process of creating the following R Shinylive application. Please be aware that it may take some time to load.
22
22
23
23
```{shinylive-r}
24
24
#| standalone: true
@@ -77,7 +77,7 @@ server <- function(input, output, session) {
77
77
shinyApp(ui = ui, server = server)
78
78
```
79
79
80
-
# Tutorial: Using r-shinylive for Static Shiny Apps in Quarto Documents
80
+
# Using r-shinylive for Serverless Shiny Apps in Quarto Documents
81
81
82
82
Are you interested in creating your own Quarto document with embedded static Shiny apps? This tutorial will guide you through the process of using the `r-shinylive` R package to achieve just that. Let's get started!
83
83
@@ -129,9 +129,7 @@ filters:
129
129
- shinylive
130
130
```
131
131
132
-
**Step 5:** Place your Shiny application code within your Quarto file (`.qmd`) as shown in the following example:
133
-
134
-
You can insert the code for a Shiny application in a code block marked with `{shinylive-r}`. Below is a skeletal example of how your code block might look:
132
+
**Step 5:** You can insert the code for a Shiny application in a code block marked with `{shinylive-r}`. Below is a skeletal example of how your code block might look:
135
133
136
134
````md
137
135
---
@@ -225,7 +223,7 @@ shinyApp(ui = ui, server = server)
225
223
```
226
224
````
227
225
228
-
You can view a standalone version of Joe's app here: <R-shinylive-demo.qmd>
226
+
You can view a standalone version of Joe's app here: [R-shinylive-demo.qmd](https://github.com/coatless-quarto/r-shinylive-demo/blob/main/R-shinylive-demo.qmd)
0 commit comments