Skip to content

Commit

Permalink
Merge pull request #96 from surveydown-dev/new-page-design
Browse files Browse the repository at this point in the history
v0.3.0 new page architecture
  • Loading branch information
jhelvy authored Sep 24, 2024
2 parents 0daa30c + 5f68fdd commit f2f8004
Show file tree
Hide file tree
Showing 43 changed files with 1,802 additions and 1,321 deletions.
6 changes: 5 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@ data-raw
^\.travis\.yml$
^CRAN-RELEASE$
^CRAN-SUBMISSION$
^.vscode$
^.vscode$
^app.R$
^survey.qmd$
^_extensions$
^data.csv$
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ notes
Meta
.idea
data.csv
survey.qmd
survey.Rproj
_extensions
survey.html
survey_files
choice_questions.csv
images
example.qmd
.vdoc.r
.Renviron
example.html
example_files
example1.rmarkdown

9 changes: 5 additions & 4 deletions 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.4
Version: 0.3.0
Authors@R: c(
person(given = "John Paul",
family = "Helveston",
Expand Down Expand Up @@ -30,21 +30,22 @@ Suggests:
knitr,
testthat
Imports:
bslib,
DBI,
digest,
DT,
htmltools,
markdown,
pool,
quarto,
remotes,
RPostgres,
rsconnect,
rvest,
shiny,
shinyjs,
shinyWidgets,
usethis,
utils,
yaml
url: https://pkg.surveydown.org/
xml2
URL: https://pkg.surveydown.org
BugReports: https://github.com/surveydown-dev/surveydown/issues
13 changes: 9 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
# Generated by roxygen2: do not edit by hand

export(sd_check_versions)
export(sd_config)
export(sd_close)
export(sd_copy_value)
export(sd_create_survey)
export(sd_database)
export(sd_deploy)
export(sd_display_question)
export(sd_display_value)
export(sd_get_data)
export(sd_get_url_pars)
export(sd_include_folder)
export(sd_next)
export(sd_output)
export(sd_question)
export(sd_redirect)
export(sd_server)
export(sd_set_password)
export(sd_setup)
export(sd_show_if)
export(sd_skip_if)
export(sd_store_value)
export(sd_update_extension)
export(sd_update_surveydown)
export(sd_ui)
export(sd_update)
export(sd_version)
import(shiny)
importFrom(digest,digest)
importFrom(rsconnect,deployApp)
importFrom(shiny,HTML)
importFrom(shiny,actionButton)
importFrom(shiny,getDefaultReactiveDomain)
Expand Down
15 changes: 14 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# surveydown (development version)

- Modified `sd_get_url_pars()` to include `reactive()` with the `()` at the end, so now the function returns an evaluated reactive expression.
# surveydown 0.3.0

- Introduced `sd_ui()` function to set placeholders for the shiny app ui.
- Heavily revised how `skip_if` and `show_if` works, removing `skip_if_custom` and `show_if_custom`. Now they work similar to the `case_when()` function, where you provide the formula `condition ~ target` for each condition in either function. These are also provided globally inside the `server()` function using `sd_skip_if()` and `sd_show_if()`.
- Require that the survey file be named `"survey.qmd"`.
- Added `sd_include_folder()` function so users can add a folder to the shiny resource path.
- Automatically include the `images`, `js`, `css`, and `www` folders as well as folders to quarto files to the shiny resource path when the package loads.
- Heavily modified how `sd_next()` works to improve page navigation and ensure that each `sd_next()` button has a unique id based on the current page.
- Removed the quarto extension.
- `sd_create_survey()` changed to sourcing template directly from the package. Two parameters are provided. The first parameter is `path`, which defines the relative path of the target. If left blank, the path will be the current working directory. The second parameter is `structure`, which defines which structure of the template the user wants to choose, default as `"single"` and can be changed to `"multi"`.
- `sd_deploy()` as a wrapper function of `rsconnect::deployApp()` to deploy the survey.
- `sd_update()` as a replacement of `sd_update_surveydown()` to update the package.
- `sd_version()` as a replacement of `sd_check_versions()` to check for the current version and the latest version.
- `sd_close()` function to create a close button for the survey.

# surveydown 0.2.4

Expand Down
Loading

0 comments on commit f2f8004

Please sign in to comment.