Skip to content

Commit

Permalink
bump to v0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pingfan-hu committed Oct 10, 2024
1 parent ac17f7d commit 4085509
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: surveydown
Title: Markdown-Based Surveys Using Quarto Shiny Documents
Version: 0.3.4
Version: 0.3.5
Authors@R: c(
person(given = "John Paul",
family = "Helveston",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# surveydown (development version)

# surveydown 0.3.5

- The database updating is simplified to only write to the database on each page turn and after the survey closes.
- Bug fix: if you added new questions or values to the survey after creating the initial database table, those new values would not have been added to the table. Now they are added.
- Now the server will only update the data upon page flip and survey closure in order to decrease data traffic.
- `auto_scroll` changed to `FALSE` by default.

# surveydown 0.3.4

Expand Down
10 changes: 5 additions & 5 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
#' page navigation, database updates for survey responses, and exit survey functionality.
#'
#' @param db A list containing database connection information created using
#' \code{\link{sd_database}} function. Defaults to \code{NULL}.
#' \code{\link{sd_database}} function. Defaults to `NULL`.
#' @param use_html Logical. By default, the `"survey.qmd"` file will be
#' rendered when the app launches, which can be slow. Users can render it
#' first into a html file and set `use_html = TRUE` to use the pre-rendered
#' file, which is faster when the app loads. Defaults to `FALSE`.
#' @param required_questions Vector of character strings. The IDs of questions that must be answered. Defaults to NULL.
#' @param required_questions Vector of character strings. The IDs of questions that must be answered. Defaults to `NULL`.
#' @param all_questions_required Logical. If TRUE, all questions in the survey will be required. Defaults to FALSE.
#' @param start_page Character string. The ID of the page to start on. Defaults to NULL.
#' @param admin_page Logical. Whether to include an admin page for viewing and downloading survey data. Defaults to `FALSE`.
#' @param auto_scroll Logical. Whether to enable auto-scrolling to the next question after answering. Defaults to TRUE.
#' @param rate_survey Logical. If TRUE, shows a rating question when exiting the survey. If FALSE, shows a simple confirmation dialog. Defaults to FALSE.
#' @param auto_scroll Logical. Whether to enable auto-scrolling to the next question after answering. Defaults to `FALSE`.
#' @param rate_survey Logical. If TRUE, shows a rating question when exiting the survey. If FALSE, shows a simple confirmation dialog. Defaults to `FALSE`.
#'
#' @import shiny
#' @import shinyWidgets
Expand Down Expand Up @@ -86,7 +86,7 @@ sd_server <- function(
all_questions_required = FALSE,
start_page = NULL,
admin_page = FALSE,
auto_scroll = TRUE,
auto_scroll = FALSE,
rate_survey = FALSE
) {

Expand Down
8 changes: 4 additions & 4 deletions man/sd_server.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4085509

Please sign in to comment.