https://github.com/shahronak47/shinyRatings
An intuitive way of providing star rating in a shiny app.
https://github.com/shahronak47/shinyRatings
r r-package shiny
Last synced: 4 months ago
JSON representation
An intuitive way of providing star rating in a shiny app.
- Host: GitHub
- URL: https://github.com/shahronak47/shinyRatings
- Owner: shahronak47
- License: other
- Created: 2023-02-06T04:23:20.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T03:31:20.000Z (about 1 year ago)
- Last Synced: 2024-08-13T07:11:15.791Z (8 months ago)
- Topics: r, r-package, shiny
- Language: R
- Homepage: https://shahronak47.github.io/shinyRatings/
- Size: 4 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - shahronak47/shinyRatings - An intuitive way of providing star rating in a shiny app. (R)
README
# shinyRatings
[](https://github.com/shahronak47/shinyRatings/actions)
[](https://github.com/shahronak47/shinyRatings/actions/workflows/R-CMD-check.yaml)
[](https://codecov.io/gh/shahronak47/shinyRatings?branch=master)Have you ever needed a way to review things in `shiny` ? Look no further, as `shinyRatings` package is built to make this process very easy. It is also possible to give 1/2 stars.
```
library(shiny)
library(shinyRatings)ui <- fluidPage(
shinyRatings('star1', no_of_stars = 7, default = 5),
textOutput('text1'),
shinyRatings('star2',default = 3, disabled = TRUE),
textOutput('text2'),
)server <- function(input, output, session) {
output$text1 <- renderText({paste("No. of stars : ", input$star1)})
output$text2 <- renderText({paste("No. of stars : ", input$star2)})
}shinyApp(ui, server)
```
---
# Installation
`shinyRatings` is available on CRAN and can be installed using -
```
install.packages("shinyRatings")
```To install the package from GitHub, you can use -
```
devtools::install_github('shahronak47/shinyRatings')
```