Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Repository
R package for creating quizzes within R Shiny
Basic Info
- Host: GitHub
- Owner: priism-center
- License: other
- Language: R
- Default Branch: main
- Homepage: https://priism-center.github.io/shinyquiz/
- Size: 22.1 MB
Statistics
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 2
- Releases: 1
Metadata Files
README.md
shinyquiz
shinyquiz is an R package for creating simple, flexible quizzes within R Shiny. Easily create quizzes from various pre-built question and choice types or create your own using htmltools and shiny packages as building blocks. Integrates with Shiny applications. Ideal for non-web-developers such as educators, data scientists, and anyone who wants to assess responses interactively in a small form factor.
shinyquiz is excellent for developing short, informal quizzes with a priority of showing one question at a time. At the end of each question, users are notified if their answer is correct. Once the quiz ends, a summary page shows the user's grade, their answer, and the correct answer.
The quiz can be a standalone application or integrated into a larger Shiny application.
There is no built-in method for permanently recording users' answers in shinyquiz. By default, the package adheres to R Shiny's session data management. This means that user inputs and responses are held temporarily for the duration of the active session. Once the session ends – typically when the user closes the browser or the app is stopped – these inputs are not retained. If persistent data storage is required, such as for later analysis or record-keeping, users will need to implement their own data persistence logic. This might involve capturing the output of quiz_server() and saving responses to a database or writing them to a file.
Learn more about using shinyquiz with the Get Started article.
Installation
shinyquiz is now on CRAN. You can also install the latest development version from GitHub:
``` r
install latest release from cran
install.packages('shinyquiz')
latest development version
install.packages("remotes")
remotes::install_github('priism-center/shinyquiz')
```
Usage
``` r library(shinyquiz)
quiz <- createquiz( createquestion( 'What is the capital of Illinois?', addchoice('Chicago'), addchoice('Paw Paw'), addchoice('Springfield', correct = TRUE) ), createquestion( 'Which elements are gases at room temperature? Select all that apply.', addchoice('Hydrogen', correct = TRUE), addchoice('Mercury'), addchoice('Nitrogen', correct = TRUE), label = 'Select Hydrogen and Nitrogen' ), createquestion( 'At what temperature does water boil at sea level?', addslider(min = 90, max = 150, defaultposition = 120, correct = 100), label = 'Select 100' ) ) preview_app(quiz) ```
You can view a live version of this app here.
Owner
- Name: PRIISM Center
- Login: priism-center
- Kind: organization
- Location: Kimball Hall, 246 Greene Street, 2nd Floor New York, NY 10003
- Website: https://steinhardt.nyu.edu/priism/
- Repositories: 8
- Profile: https://github.com/priism-center
Applied Statistics research group at NYU Steinhardt
GitHub Events
Total
- Issues event: 3
- Watch event: 1
- Issue comment event: 1
- Push event: 4
Last Year
- Issues event: 3
- Watch event: 1
- Issue comment event: 1
- Push event: 4
Packages
- Total packages: 1
-
Total downloads:
- cran 131 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: shinyquiz
Create Interactive Quizzes in 'shiny'
- Homepage: https://priism-center.github.io/shinyquiz/
- Documentation: http://cran.r-project.org/web/packages/shinyquiz/shinyquiz.pdf
- License: MIT + file LICENSE
-
Latest release: 0.0.1
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- cli >= 3.6.1 imports
- dplyr >= 1.1.1 imports
- fontawesome >= 0.5.0 imports
- glue >= 1.6.2 imports
- htmltools >= 0.5.5 imports
- methods >= 4.0.0 imports
- purrr >= 1.0.1 imports
- reactable >= 0.4.4 imports
- scales >= 1.2.1 imports
- shiny >= 1.7.4 imports
- shinyjs >= 2.1.0 imports
- stringr >= 1.5.0 imports
- tibble >= 3.2.1 imports
- knitr * suggests
- pkgload * suggests
- renv * suggests
- rmarkdown * suggests
- sortable >= 0.5.0 suggests
- testthat >= 3.1.7 suggests