-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
113 lines (80 loc) · 3.61 KB
/
Copy pathREADME.Rmd
File metadata and controls
113 lines (80 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit this file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
warning = FALSE,
message = FALSE,
comment = "#>",
fig.path = "man/figures/",
fig.retina = 3
)
```
## sdstudio
<!-- badges: start -->
[](https://cran.r-project.org/package=sdstudio)
[](https://cran.r-project.org/package=sdstudio)
[](https://github.com/surveydown-dev/sdstudio)
<!-- badges: end -->
`sdstudio` is a companion package for building, previewing, and managing surveys built using the [surveydown](https://surveydown.org/) survey platform through a Graphical User Interface (GUI). The studio runs as a local Shiny web app and makes it easier to create, preview, and manage surveys without extensive programming knowledge.
## Intro Video
<div align="center">
<a href="https://www.youtube.com/watch?v=p00ivfg1B1M">
<img src="https://img.youtube.com/vi/p00ivfg1B1M/maxresdefault.jpg" alt="Watch the sdstudio intro video" width="500"/>
</a>
</div>
## Installation
Installing `sdstudio`:
```{r}
#| eval: false
# Option 1: install from CRAN
install.packages("sdstudio")
# Option 2: install from GitHub
pak::pak("surveydown-dev/sdstudio", ask = FALSE)
```
Make sure to install `surveydown` as well:
```{r}
#| eval: false
# Option 1: install from CRAN
install.packages("surveydown")
# Option 2: install from GitHub
pak::pak("surveydown-dev/surveydown", ask = FALSE)
```
## Launch
Simply call the `launch()` function to start the studio:
```{r}
#| eval: false
sdstudio::launch()
```
## Features
### 🏗️ **Build Tab** - Visual Survey Creation
- **Drag-and-drop interface** for intuitive survey construction
- **16 survey templates** covering basic to advanced use cases
- **Dual-pane editor** with visual builder and code editor
- **Real-time synchronization** between visual interface and underlying code
- **Undo/redo functionality** for all editing operations
- **Local/DB mode switching** for local testing and database connection workflows
### 👁️ **Preview Tab** - Live Survey Testing
- **Real-time preview** of your survey as you build
- **Responsive preview modes**: Desktop (widescreen) and Mobile (375px) views
### 📊 **Responses Tab** - Data Management & Analytics
- **Real-time analytics dashboard** showing summaries of responses and local interactive data table
- **PostgreSQL database integration** with connection pooling
- **GSSAPI encryption support** with automatic fallback options
- **CSV export functionality** for data analysis
## Templates
We currently have 16 templates to choose from. The ***default*** template contains a minimum basic structure for a clean start. You might also try the ***question_type*** template for a showcase of all question types, or try some advanced features with ***conditional_display***, ***conditional_navigation***, etc. For a full list of templates, go to the [surveydown-dev GitHub site](https://github.com/surveydown-dev) and search for any repo starting with "template_".
## Database Configuration
The studio supports flexible database connection modes:
```{r}
#| eval: false
# Auto mode (recommended) - tries GSSAPI first, falls back if needed
launch()
# Prefer mode - uses GSSAPI if available, plain connection if not
launch(gssencmode = "prefer")
# Disable mode - forces plain connection (useful for VPN environments)
launch(gssencmode = "disable")
```