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
Add a DESCRIPTION file to install dependencies on the GitHub action runner due to a change between shinylive 0.2.0 and shinylive 0.3.0 requiring the R package to physically be installed.
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,10 +77,31 @@ For this to work, we're advocating for a repository structure of:
77
77
│ └── workflows
78
78
│ └── build-and-deploy-shinylive-r-app.yml
79
79
├── README.md
80
+
├── DESCRIPTION
80
81
└── app.R
81
82
```
82
83
83
-
The source for the R Shiny app can be placed into the [`app.R`](app.R) file and, then, use the following GitHub Action in `.github/workflows/build-and-deploy-shinylive-r-app.yml` to build and deploy the shinylive app every time the repository is updated.
84
+
The source for the R Shiny app can be placed into the [`app.R`](app.R) file,
85
+
the DESCRIPTION file can be used to specify the dependencies of the app,
86
+
and, then, use the following GitHub Action in `.github/workflows/build-and-deploy-shinylive-r-app.yml` to build and deploy the shinylive app every time the repository is updated.
87
+
88
+
## DESCRIPTION File
89
+
90
+
The DESCRIPTION file is used to specify the dependencies of the app. For the
91
+
example app, the DESCRIPTION file is as follows:
92
+
93
+
```default
94
+
Package: shinyliveconvertdemo
95
+
Title: Demo converting an R Shiny application to Shinylive
96
+
Version: 0.0.1
97
+
Description: List the package dependencies here for the GitHub action to automatically
98
+
include the packages on the build. This is required for r-shinylive version >= 0.3.0.
99
+
Imports:
100
+
shiny,
101
+
shinythemes
102
+
Encoding: UTF-8
103
+
```
104
+
84
105
85
106
## GitHub Action Workflow for Converting and Deploying
0 commit comments