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
Copy file name to clipboardExpand all lines: vignettes/shiny.fluent.Rmd
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,21 +22,21 @@ This tutorial demonstrates how to build a dynamic Shiny application using `react
22
22
23
23
Initially, ensure you have the necessary rhino package installed. You can do this by running the following command in your R console:
24
24
25
-
```{r}
25
+
```r
26
26
# Install rhino if not yet installed
27
27
install.packages("rhino")
28
28
```
29
29
30
30
Next, you will need to create a new rhino project. If you haven't already set up a rhino project, you can do so by running the following command in your R console:
31
31
32
-
```{r}
32
+
```r
33
33
# Initialize a new rhino project (will create project scaffolding)
34
34
rhino::init()
35
35
```
36
36
37
37
This will create a basic structure for your application. Add the following libraries to your `dependencies.R` file:
38
38
39
-
```{r}
39
+
```r
40
40
# dependencies.R
41
41
42
42
library(rhino) # App structure
@@ -51,7 +51,7 @@ library(treesitter.r) # Optional: R syntax support
51
51
52
52
and then
53
53
54
-
```{r}
54
+
```r
55
55
renv::snapshot()
56
56
```
57
57
@@ -72,7 +72,7 @@ The components of the application will be structured as follows:
72
72
73
73
The final strucutre of the `app` will look like this:
74
74
75
-
```
75
+
```yml
76
76
├── app
77
77
│ ├── js
78
78
│ │ └── index.js
@@ -105,7 +105,7 @@ The final strucutre of the `app` will look like this:
105
105
106
106
The main part of the application to address the routing and the UI components is in the `app.R` file.
107
107
108
-
```{r}
108
+
```r
109
109
# app / main.R
110
110
111
111
box::use(
@@ -190,7 +190,7 @@ This function defines the overall layout and routing of the application using re
190
190
191
191
You can now run your app locally with the following script:
0 commit comments