-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfaq.qmd
More file actions
84 lines (51 loc) · 5.89 KB
/
faq.qmd
File metadata and controls
84 lines (51 loc) · 5.89 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
---
title: "Frequently Asked Questions"
toc-title: "Questions"
---
<style>
h2 {
font-size: 1.3em;
}
</style>
::: {.callout-note}
Have a question but don't see an answer here? Feel free to make a post on GitHub:
- Post a bug report or documentation issue on the [GitHub repo issues page](https://github.com/surveydown-dev/surveydown/issues).
- Ask a question, make a feature request, start a discussion, or show off your project on the [discussion board](https://github.com/orgs/surveydown-dev/discussions).
:::
## Is surveydown right for me?
surveydown might be a good fit for you today if…
- you are comfortable using {{< var quarto >}} for rendering markdown into html outputs and {{< var rproject >}} for basic coding (you certainly don't need to be an R / coding "expert" to use surveydown!)
- you are frustrated with alternative survey platforms that require expensive licenses or have limited features.
- you want to collaborate on surveys with others using reproducible tools like Git.
- you don't mind using a project that is not fully polished or finished (but certainly good enough for proper research projects).
surveydown might not be a good fit for you today if…
- you need stable, polished software that is mature and completely bug-free.
- you need a product with a guaranteed security level, such as HIPAA compliance (see our [security page](docs/security.html) for more details).
- you prefer a platform that uses a graphic interface to define survey content.
## Why is my survey app so slow when starting?
When a surveydown survey first runs, it checks for files in a **\_survey** folder that contain the rendered content from your **survey.qmd** file. If any of those files are missing or if changes have been detected in your **survey.qmd** or **app.R** files, it will re-render your survey, which can take a bit longer. But this only happens once, and afterwards so long as no further changes have been made to your survey files the app will use the saved content in the **\_survey** folder to launch, which should load almost instantly. So if your app launches slowly, just close it and launch it again and you should immediately load. If you still see a slow launch, consider [posting an issue](https://github.com/surveydown-dev/surveydown/issues) to let us know that something might be wrong.
Also, it is important that you run your survey locally **at least once** before deploying it live. This will render all your survey content into the **\_survey** folder, which will also get uploaded when you deploy it.
## How do I customize the look and feel of my survey?
Please see our [Survey Settings](/docs/survey-settings.html) page for a full walkthrough of all available customization options, including themes, colors, progress bar settings, and survey behaviors.
## Installation issues
Make sure you have all of the required software for surveydown - see the [installation instructions](docs/getting-started.html#install) for details.
::: {.callout-note}
Sometimes the R packages like `surveydown` may not install properly, often because your path is managed by some package managing system like [Anaconda](https://www.anaconda.com). In this case, a third alternative is to download the zip file of the package source code and then install it locally.
To download the zip file, go the the [surveydown repo](https://github.com/surveydown-dev/surveydown), click on the green "Code" button and click on "Download Zip", or simplify click on [this link](https://github.com/surveydown-dev/surveydown/archive/refs/heads/main.zip).
Unzip this repo, then open the **surveydown.Rproj** file. In your R Console panel, run this code to install:
```{r}
# install.packages("pak")
pak::local_install(ask = FALSE)
```
:::
Some useful links:
- [surveydown CRAN Page](https://cran.r-project.org/web/packages/surveydown/index.html)
- [surveydown GitHub repo](https://github.com/surveydown-dev/surveydown/)
## I'm having trouble with the database connection
You might encounter connection problem caused by failure of GSSAPI (Generic Security Services Application Program Interface). It is a a protection layer for data security supported by PostgreSQL. In SQL management, it is controlled by the `gssencmode` argument.
In previous versions of **surveydown** (before `v0.12.5`), the `sd_db_connect()` and `sd_dashboard()` functions have a `gssencmode` default to `"prefer"`, which enables GSSAPI, but may cause connection failure under some network conditions (VPN, for example). Our previous solution is to manually change `gssencmode` from `"prefer"` to `"disable"`, but it is less intuitive and causes more trouble than efficiency.
Therefore, our current solution (versions after `v0.12.5`) is to remove the `gssencmode` argument from these functions, in which the GSSAPI is set to `"prefer"` by default, but if the connection errors due to network problem, it will auto-switch to `"disable"` and leave a message.
## I'm having trouble deploying my survey to shinyapps.io
If your shinyapps deployment fails, you should firstly make sure your database credentials are correctly defined, including your Supabase project settings and password settings (if you're using Supabase). The password defined by `sd_db_config()` should be the same as your Supabase project / database password. Access the [Storing Data](docs/storing-data.html) page for how to set all database credentials.
Then, make sure your survey runs on your local machine and can successfully link with your database table. With these confirmed, your shinyapps deployment should work without problem.
If you still encounter an error (e.g., the page shows the app failed to start, or you see the page but it doesn't run properly), try clearing your cache. The simplest way to do so is to **reboot your computer**. It may also help if you delete previously generated files, such as the `survey.html` file if you rendered it and the `rsconnect` folder. After re-rendering, you should be able to deploy the app without error.