https://github.com/stefanwilhelm/ShinyRatingInput
Rating input controls for Shiny
https://github.com/stefanwilhelm/ShinyRatingInput
Last synced: 25 days ago
JSON representation
Rating input controls for Shiny
- Host: GitHub
- URL: https://github.com/stefanwilhelm/ShinyRatingInput
- Owner: stefanwilhelm
- License: other
- Created: 2015-01-11T21:59:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-08T20:30:13.000Z (over 8 years ago)
- Last Synced: 2025-04-20T04:52:11.479Z (about 1 month ago)
- Language: HTML
- Homepage:
- Size: 339 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - stefanwilhelm/ShinyRatingInput - Rating input controls for Shiny (HTML)
- awesome-shiny-extensions - ShinyRatingInput - Star rating inputs for Shiny based on bootstrap-rating. (UI Components / Special Input)
README
# ShinyRatingInput
This package is wrapping up the [bootstrap-rating](https://github.com/dreyescat/bootstrap-rating/) JavaScript library for the use with Shiny. It allows for easy creating of rating input controls in Shiny, such as:
```
#in ui.R
library(ShinyRatingInput)
shinyUI(bootstrapPage(
ratingInput("movieRating", label="Rate this movie...", dataStop=10, dataFractions=2),
htmlOutput("movieRating")
))#the corresponding server.R
shinyServer(function(input, output, session) {
output$movieRating <- renderText({
paste("The movie was rated ",input$movieRating)
})
})
```To install, install the `devtools` package if necessary (`install.packages("devtools")`) and run:
```
devtools::install_github("stefanwilhelm/ShinyRatingInput")
```External Javascript libraries used in this package include:
* [bootstrap-rating](https://github.com/dreyescat/bootstrap-rating/)
Credits
=======Many thanks to [dreyescat](https://github.com/dreyescat/bootstrap-rating/) for the [bootstrap-rating](https://github.com/dreyescat/bootstrap-rating/) library.
Many thanks also to
* [shinyDash](https://github.com/trestletech/ShinyDash) and
* [shiny-jsdemo](https://github.com/wch/shiny-jsdemo)for demonstrating various techniques to integrate third-party JavaScript libraries into Shiny.
License information
===================* [bootstrap-rating](https://github.com/dreyescat/bootstrap-rating/) is released under the MIT license.
* All other code in this package is licensed under MIT license.