Skip to content

Commit

Permalink
update readme, closes #115
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelvy committed Oct 10, 2024
1 parent 8e9ee8f commit a5e5b92
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 5 deletions.
48 changes: 46 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,50 @@ The {surveydown} R package provides functions to bring this all together.

**See the [documentation](https://surveydown.org) to get started making your own surveydown survey!**

# Installation

## Install R & Quarto

You need both:

- Install [R](https://CRAN.R-project.org/)
- Install [Quarto](https://quarto.org/)

We also recommend working with an IDE that has good support for R, Quarto, and Shiny.

[RStudio](https://www.rstudio.com/categories/rstudio-ide/) is great, and we also like [VSCode](https://code.visualstudio.com) and [Positron](https://github.com/posit-dev/positron).

## Install the {surveydown} R package

The {surveydown} R package is not yet on CRAN, but you can install the development version from GitHub with the following command in your R console:

```{r}
#| eval: false
# install.packages("remotes")
remotes::install_github("surveydown-dev/surveydown")
```

## Version Control

We made some R functions to make it easier to keep your R package.

To _check_ which version of the {surveydown} package you have installed, run:

```{r}
#| eval: false
surveydown::sd_version()
```

To _update_ to the latest version of the {surveydown} package, run:

```{r}
#| eval: false
surveydown::sd_update()
```

# Background & Motivation

Most survey platforms (e.g., Google forms, Qualtrics, etc.) use drag-and-drop interfaces to design surveys, making version control and collaboration with others difficult. They're also not reproducible (others cannot easily reproduce a survey made on these platforms), and many require a paid subscription or license to use.
Expand All @@ -62,11 +106,11 @@ This is a running list of things we're working on / have already added to the pr
- [x] Include input checks for `skip_if` and `show_if` (`question_id` exists, and data frame names are correct)
- [x] Required questions: post a popup if a question is required before allowing next button.
- [x] Add a `sd_get_data()` function so the survey designer can obtain the current survey results from inside the app: https://shinysurveys.jdtrat.com/articles/get-survey-data.html
- [ ] Admin page w/password to preview / download data (see https://github.com/daattali/shinyforms)
- [x] Ability to pass url parameters, e.g. for tracking users.
- [x] Ability to redirect users to another url.
- [ ] Admin page w/password to preview / download data (see https://github.com/daattali/shinyforms)
- [ ] Form validation: Make sure the user inputs the correct type depending on the question type. (see https://shiny.posit.co/r/reference/shiny/0.14/validate.html)
- [ ] Deal with cookies so users who close the browser can start back where they left off.
- [ ] Leverage cookies so users who close the browser can start back where they left off.
- Question types:
- [x] Multiple choice (single choice)
- [x] Multiple choice (multiple choices)
Expand Down
50 changes: 47 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,50 @@ together.
**See the [documentation](https://surveydown.org) to get started making
your own surveydown survey!**

# Installation

## Install R & Quarto

You need both:

- Install [R](https://CRAN.R-project.org/)
- Install [Quarto](https://quarto.org/)

We also recommend working with an IDE that has good support for R,
Quarto, and Shiny.

[RStudio](https://www.rstudio.com/categories/rstudio-ide/) is great, and
we also like [VSCode](https://code.visualstudio.com) and
[Positron](https://github.com/posit-dev/positron).

## Install the {surveydown} R package

The {surveydown} R package is not yet on CRAN, but you can install the
development version from GitHub with the following command in your R
console:

``` r
# install.packages("remotes")
remotes::install_github("surveydown-dev/surveydown")
```

## Version Control

We made some R functions to make it easier to keep your R package.

To *check* which version of the {surveydown} package you have installed,
run:

``` r
surveydown::sd_version()
```

To *update* to the latest version of the {surveydown} package, run:

``` r
surveydown::sd_update()
```

# Background & Motivation

Most survey platforms (e.g., Google forms, Qualtrics, etc.) use
Expand Down Expand Up @@ -91,14 +135,14 @@ to the project:
- [x] Add a `sd_get_data()` function so the survey designer can obtain
the current survey results from inside the app:
<https://shinysurveys.jdtrat.com/articles/get-survey-data.html>
- [ ] Admin page w/password to preview / download data (see
<https://github.com/daattali/shinyforms>)
- [x] Ability to pass url parameters, e.g. for tracking users.
- [x] Ability to redirect users to another url.
- [ ] Admin page w/password to preview / download data (see
<https://github.com/daattali/shinyforms>)
- [ ] Form validation: Make sure the user inputs the correct type
depending on the question type. (see
<https://shiny.posit.co/r/reference/shiny/0.14/validate.html>)
- [ ] Deal with cookies so users who close the browser can start back
- [ ] Leverage cookies so users who close the browser can start back
where they left off.
- Question types:
- [x] Multiple choice (single choice)
Expand Down

0 comments on commit a5e5b92

Please sign in to comment.