Skip to content

Commit

Permalink
Merge pull request #18 from shahronak47/17-submit-to-CRAN
Browse files Browse the repository at this point in the history
push changes for CRAN
  • Loading branch information
shahronak47 authored Jul 14, 2023
2 parents 88e13f3 + 426db07 commit 421d4c3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ shinyRatings\.Rproj
^_pkgdown\.yml$
^docs$
^pkgdown$
^README\.md$
^NEWS\.md$
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Package: shinyRatings
Title: An intuitive way of providing star rating on a shiny app
Version: 0.0.3
Title: An Intuitive Way of Providing Star Rating in a 'shiny' App
Version: 0.1.0
Authors@R: person("Ronak", "Shah", , "[email protected]", role = c("aut", "cre"))
Description: An intuitive way of providing star rating on a shiny app.
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
Roxygen: list(markdown = TRUE)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# shinyRatings 0.1.0

- [Make package ready for CRAN submission.](#17)

# shinyRatings 0.0.3

- [Add more than 1 shinyRating without disturbing each other](#15)
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ library(shiny)
library(shinyRatings)
ui <- fluidPage(
shinyRatings('star'),
textOutput('text')
shinyRatings('star1', no_of_stars = 7, default = 5),
textOutput('text1'),
shinyRatings('star2',default = 3, disabled = TRUE),
textOutput('text2'),
)
server <- function(input, output, session) {
output$text <- renderText({paste("No. of stars : ", input$star)})
output$text1 <- renderText({paste("No. of stars : ", input$star1)})
output$text2 <- renderText({paste("No. of stars : ", input$star2)})
}
shinyApp(ui, server)
Expand All @@ -28,7 +31,13 @@ shinyApp(ui, server)

# Installation

To install the package you can use -
`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')
Expand Down
Binary file modified man/figures/output.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 421d4c3

Please sign in to comment.