| Title: | An Intuitive Way of Providing Star Rating in a 'shiny' App | 
| Version: | 0.1.0 | 
| Description: | A simple interface to integrate star ratings into your 'shiny' apps. It can be used for customer feedback systems, user reviews, or any application that requires user ratings. 'shinyRatings' offers a straightforward and customisable solution that enhances user engagement and facilitates valuable feedback collection. | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| RoxygenNote: | 7.2.3 | 
| Suggests: | covr, testthat (≥ 3.0.0) | 
| Config/testthat/edition: | 3 | 
| Imports: | shiny, htmltools, jsonlite | 
| NeedsCompilation: | no | 
| Packaged: | 2023-07-13 13:25:35 UTC; shahronak47 | 
| Author: | Ronak Shah [aut, cre] | 
| Maintainer: | Ronak Shah <shahronak47@yahoo.in> | 
| Repository: | CRAN | 
| Date/Publication: | 2023-07-13 15:30:03 UTC | 
Include ratings in shiny UI
Description
Include ratings in shiny UI
Usage
shinyRatings(inputId, no_of_stars = 5, default = no_of_stars, disabled = FALSE)
Arguments
| inputId | The input slot that will be used to access the value of number of stars. | 
| no_of_stars | Number of stars that you want to display on the UI. | 
| default | Number of stars selected by default. | 
| disabled | Keep number of stars as fixed? Disable the option of changing values | 
Value
Ratings to be added to UI definition
Examples
if(interactive()){
 library(shiny)
 library(shinyRatings)
ui <- fluidPage(
  shinyRatings('star'), 
  textOutput('text')
)
server <- function(input, output, session) {
   output$text <- renderText({paste("No. of stars : ", input$star)})
}
shinyApp(ui, server)
}