Frequently Asked Questions

Note

Have a question but don’t see an answer here? Feel free to make a post on GitHub:

How do I make a question required?

Use the required_questions argument in sd_config() to control required responses. See making a question required.

Why is my shinyapps deployment failing?

First, make sure everything is correctly defined, including your Supabase project settings and password settings. The password in your project folder should be the same as your Supabase project password (see here for how to set the password). Then, make sure your survey runs on your local machine and can successfully link with your Supabase project 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.

Why does my app load slowly?

If your app takes a little while to load, one reason may be that you haven’t pre-rendered your survey.qmd file. The sd_server() function in yourapp.R file has an optional use_html argument which defaults to FALSE, which means your app will render the survey.qmd file on each session, which can be slow. If you instead render the survey.qmd file first yourself and then set use_html = TRUE in sd_server(), your app will load much faster. See “Pre-rendering your survey” for more details.

Back to top