Skip to content

Commit

Permalink
Merge pull request #89 from surveydown-dev/redirect
Browse files Browse the repository at this point in the history
bump to v0.2.2
  • Loading branch information
pingfan-hu authored Sep 10, 2024
2 parents 99f36fe + 59ba313 commit 55760f1
Show file tree
Hide file tree
Showing 14 changed files with 316 additions and 320 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.2.1
Version: 0.2.2
Authors@R: c(
person(given = "John Paul",
family = "Helveston",
Expand Down
3 changes: 1 addition & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export(sd_display_value)
export(sd_get_data)
export(sd_get_url_pars)
export(sd_next)
export(sd_output)
export(sd_question)
export(sd_redirect)
export(sd_render_url)
export(sd_server)
export(sd_set_password)
export(sd_setup)
Expand All @@ -27,4 +27,3 @@ importFrom(shiny,parseQueryString)
importFrom(shiny,reactive)
importFrom(shiny,renderUI)
importFrom(shiny,tags)
importFrom(shiny,uiOutput)
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# surveydown (development version)

# surveydown 0.2.2

- `sd_redirect()` to create redirection to external links, either by providing a button, a countdown, or both. This function can be called both in the survey body and the server chunk.
- `sd_get_url_pars()` to reactively get the parameters in the URL.
- `sd_render_url()` to create external URL with parameters in the survey body. It is simply a replacement of the `shiny::uiOutput()` function.
- The above 3 functions work together to retrieve and redirect URL parameters so that surveydown is compatible with survey panels.
- Now `sd_next()` and `sd_redirect()` both support the "Enter" key for a better user experience.
- Add automatic clean up in `sd_database()`.
- `sd_output()` function that replaces the original `sd_display_question()` (by specifying `type = "question"`) and `sd_display_value()` (by specifying `type = "value"`). The original 2 functions are depreciated and will be removed in future updates. If `sd_output()` is only used with `"id"` specified, it works the same as `shiny::uiOutput()`.

# surveydown 0.2.1

Expand Down
Loading

0 comments on commit 55760f1

Please sign in to comment.