Skip to content

Commit 909cbea

Browse files
committed
update
1 parent 2642536 commit 909cbea

File tree

8 files changed

+15
-75
lines changed

8 files changed

+15
-75
lines changed

README.Rmd

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,13 @@ Build fully interactive forms, quizzes, and data entry apps in R—using SurveyJ
2121
<a href="https://maltinho.shinyapps.io/rsurveyjs_gallery/"><b>🌐 See the rsurveyjs App Gallery →</b></a>
2222
</div>
2323

24-
---
25-
2624
## 🚀 Installation
2725

2826
```r
2927
remotes::install_github("Tazinho/rsurveyjs")
3028
# (CRAN release coming soon)
3129
```
3230

33-
---
34-
3531
## ✨ Core Features
3632

3733
- Render any [SurveyJS](https://surveyjs.io/) survey from R lists—no manual JSON needed
@@ -41,8 +37,6 @@ remotes::install_github("Tazinho/rsurveyjs")
4137
- Dynamically update forms, pre-fill data, or localize at runtime
4238
- Power users: inject JavaScript for validation, custom logic, and events
4339

44-
---
45-
4640
## 📚 Learn by Example: Copy-Paste Vignettes
4741

4842
- **Survey Schema Recipes**
@@ -59,8 +53,6 @@ remotes::install_github("Tazinho/rsurveyjs")
5953

6054
> See [all vignettes on the docs site](https://tazinho.github.io/rsurveyjs/articles/).
6155
62-
---
63-
6456
## 🔧 Minimal Example
6557

6658
```r
@@ -82,8 +74,6 @@ surveyjs(
8274
```
8375
*See more: vignette("survey-schema-recipes")*
8476

85-
---
86-
8777
## 🧪 Shiny Integration Quick Reference
8878

8979
| Feature | Shiny Input ID |
@@ -93,8 +83,6 @@ surveyjs(
9383

9484
See [Shiny and Database Integration](articles/shiny-and-database-integration.html) for advanced use.
9585

96-
---
97-
9886
## 🚦 Design Philosophy & Limitations
9987

10088
- **No R-side validation:**
@@ -114,7 +102,11 @@ See [Shiny and Database Integration](articles/shiny-and-database-integration.htm
114102
> Custom widget support is available *for power users only*, via JavaScript hooks.
115103
> - For real-world JS examples, see the [Advanced JS Hooks & Events vignette](articles/advanced-js-hooks--events.html).
116104
117-
---
105+
## Note on Custom JavaScript Hooks
106+
107+
Custom JavaScript hooks (`pre_render_hook`, `post_render_hook`, `complete_hook`) allow you to inject JavaScript code into the SurveyJS widget from R.
108+
This is standard for trusted/internal use, but please be aware that any code supplied will be executed in the user’s browser.
109+
If your app is public or multi-user, only use this feature for users you fully trust.
118110

119111
## 🏗️ Feature Table
120112

@@ -129,23 +121,17 @@ See [Shiny and Database Integration](articles/shiny-and-database-integration.htm
129121
| JS hooks & events ||| Pre/post/complete hooks |
130122
| PDF export, designer, file uploads ||| See SurveyJS docs/FAQ |
131123

132-
---
133-
134124
## 📖 Further Reference
135125

136126
- [SurveyJS Documentation](https://surveyjs.io/form-library/documentation/json-schema)
137127
- [Themes & Styling](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles)
138128
- [rsurveyjs Vignettes & Gallery](https://tazinho.github.io/rsurveyjs/articles/)
139129

140-
---
141-
142130
## 🛠️ Contributing
143131

144132
Feedback, bug reports, and pull requests welcome!
145133
[File an issue](https://github.com/Tazinho/rsurveyjs/issues) or contribute via PR.
146134

147-
---
148-
149135
## 🪪 License
150136

151137
SurveyJS Form Library and rsurveyjs are both MIT licensed.

README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,13 @@ rsurveyjs App Gallery →</b></a>
2626

2727
</div>
2828

29-
------------------------------------------------------------------------
30-
3129
## 🚀 Installation
3230

3331
``` r
3432
remotes::install_github("Tazinho/rsurveyjs")
3533
# (CRAN release coming soon)
3634
```
3735

38-
------------------------------------------------------------------------
39-
4036
## ✨ Core Features
4137

4238
- Render any [SurveyJS](https://surveyjs.io/) survey from R lists—no
@@ -49,8 +45,6 @@ remotes::install_github("Tazinho/rsurveyjs")
4945
- Power users: inject JavaScript for validation, custom logic, and
5046
events
5147

52-
------------------------------------------------------------------------
53-
5448
## 📚 Learn by Example: Copy-Paste Vignettes
5549

5650
- **Survey Schema Recipes**
@@ -71,8 +65,6 @@ remotes::install_github("Tazinho/rsurveyjs")
7165
> See [all vignettes on the docs
7266
> site](https://tazinho.github.io/rsurveyjs/articles/).
7367
74-
------------------------------------------------------------------------
75-
7668
## 🔧 Minimal Example
7769

7870
``` r
@@ -95,8 +87,6 @@ surveyjs(
9587

9688
*See more: vignette(“survey-schema-recipes”)*
9789

98-
------------------------------------------------------------------------
99-
10090
## 🧪 Shiny Integration Quick Reference
10191

10292
| Feature | Shiny Input ID |
@@ -108,8 +98,6 @@ See [Shiny and Database
10898
Integration](articles/shiny-and-database-integration.html) for advanced
10999
use.
110100

111-
------------------------------------------------------------------------
112-
113101
## 🚦 Design Philosophy & Limitations
114102

115103
- **No R-side validation:**
@@ -143,7 +131,15 @@ use.
143131
> - For real-world JS examples, see the [Advanced JS Hooks & Events
144132
> vignette](articles/advanced-js-hooks--events.html).
145133
146-
------------------------------------------------------------------------
134+
## Note on Custom JavaScript Hooks
135+
136+
Custom JavaScript hooks (`pre_render_hook`, `post_render_hook`,
137+
`complete_hook`) allow you to inject JavaScript code into the SurveyJS
138+
widget from R.
139+
This is standard for trusted/internal use, but please be aware that any
140+
code supplied will be executed in the user’s browser.
141+
If your app is public or multi-user, only use this feature for users you
142+
fully trust.
147143

148144
## 🏗️ Feature Table
149145

@@ -158,8 +154,6 @@ use.
158154
| JS hooks & events ||| Pre/post/complete hooks |
159155
| PDF export, designer, file uploads ||| See SurveyJS docs/FAQ |
160156

161-
------------------------------------------------------------------------
162-
163157
## 📖 Further Reference
164158

165159
- [SurveyJS
@@ -169,16 +163,12 @@ use.
169163
- [rsurveyjs Vignettes &
170164
Gallery](https://tazinho.github.io/rsurveyjs/articles/)
171165

172-
------------------------------------------------------------------------
173-
174166
## 🛠️ Contributing
175167

176168
Feedback, bug reports, and pull requests welcome!
177169
[File an issue](https://github.com/Tazinho/rsurveyjs/issues) or
178170
contribute via PR.
179171

180-
------------------------------------------------------------------------
181-
182172
## 🪪 License
183173

184174
SurveyJS Form Library and rsurveyjs are both MIT licensed.

docs/articles/articles/advanced-js-hooks-and-events.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/articles/articles/shiny-and-database-integration.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/articles/articles/survey-schema-recipes.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/articles/articles/themes-styling-and-localization.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ articles:
77
shiny-and-database-integration: shiny-and-database-integration.html
88
survey-schema-recipes: survey-schema-recipes.html
99
themes-styling-and-localization: themes-styling-and-localization.html
10-
last_built: 2025-08-02T15:17Z
10+
last_built: 2025-08-02T17:15Z
1111
urls:
1212
reference: https://tazinho.github.io/rsurveyjs/reference
1313
article: https://tazinho.github.io/rsurveyjs/articles

docs/sitemap.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<urlset xmlns = 'http://www.sitemaps.org/schemas/sitemap/0.9'>
22
<url><loc>https://tazinho.github.io/rsurveyjs/404.html</loc></url>
33
<url><loc>https://tazinho.github.io/rsurveyjs/articles/advanced-js-hooks-and-events.html</loc></url>
4-
<url><loc>https://tazinho.github.io/rsurveyjs/articles/articles/advanced-js-hooks-and-events.html</loc></url>
5-
<url><loc>https://tazinho.github.io/rsurveyjs/articles/articles/shiny-and-database-integration.html</loc></url>
6-
<url><loc>https://tazinho.github.io/rsurveyjs/articles/articles/survey-schema-recipes.html</loc></url>
7-
<url><loc>https://tazinho.github.io/rsurveyjs/articles/articles/themes-styling-and-localization.html</loc></url>
84
<url><loc>https://tazinho.github.io/rsurveyjs/articles/index.html</loc></url>
95
<url><loc>https://tazinho.github.io/rsurveyjs/articles/shiny-and-database-integration.html</loc></url>
106
<url><loc>https://tazinho.github.io/rsurveyjs/articles/survey-schema-recipes.html</loc></url>

0 commit comments

Comments
 (0)