Skip to content

Commit 46709d0

Browse files
authored
Merge pull request #6 from lgnbhl/example-shiny.fluent
fix vignette error when building package
2 parents 234c4bd + 86cb7f3 commit 46709d0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

vignettes/shiny.fluent.Rmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ This tutorial demonstrates how to build a dynamic Shiny application using `react
2222

2323
Initially, ensure you have the necessary rhino package installed. You can do this by running the following command in your R console:
2424

25-
```{r}
25+
```r
2626
# Install rhino if not yet installed
2727
install.packages("rhino")
2828
```
2929

3030
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:
3131

32-
```{r}
32+
```r
3333
# Initialize a new rhino project (will create project scaffolding)
3434
rhino::init()
3535
```
3636

3737
This will create a basic structure for your application. Add the following libraries to your `dependencies.R` file:
3838

39-
```{r}
39+
```r
4040
# dependencies.R
4141

4242
library(rhino) # App structure
@@ -51,7 +51,7 @@ library(treesitter.r) # Optional: R syntax support
5151

5252
and then
5353

54-
```{r}
54+
```r
5555
renv::snapshot()
5656
```
5757

@@ -72,7 +72,7 @@ The components of the application will be structured as follows:
7272

7373
The final strucutre of the `app` will look like this:
7474

75-
```
75+
```yml
7676
├── app
7777
│ ├── js
7878
│ │ └── index.js
@@ -105,7 +105,7 @@ The final strucutre of the `app` will look like this:
105105

106106
The main part of the application to address the routing and the UI components is in the `app.R` file.
107107

108-
```{r}
108+
```r
109109
# app / main.R
110110

111111
box::use(
@@ -190,7 +190,7 @@ This function defines the overall layout and routing of the application using re
190190

191191
You can now run your app locally with the following script:
192192

193-
```{r}
193+
```r
194194
# run_dev.R
195195

196196
rhino::build_js()

0 commit comments

Comments
 (0)