-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update cran comments for resubmission
- Loading branch information
1 parent
b328e90
commit cc03337
Showing
5 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
^\.github$ | ||
^data-raw$ | ||
^cran-comments\.md$ | ||
^CRAN-RELEASE$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
|
||
<!-- README.md is generated from README.Rmd. Please edit that file --> | ||
|
||
# hover | ||
hover | ||
===== | ||
|
||
<!-- badges: start --> | ||
|
||
[](https://github.com/tyluRp/hover/actions) | ||
status](https://github.com/r4fun/hover/workflows/R-CMD-check/badge.svg)](https://github.com/r4fun/hover/actions) | ||
[](https://codecov.io/gh/tyluRp/hover?branch=master) | ||
coverage](https://codecov.io/gh/r4fun/hover/branch/master/graph/badge.svg)](https://codecov.io/gh/r4fun/hover?branch=master) | ||
<!-- badges: end --> | ||
|
||
The goal of hover is to add animations to `shiny::actionButton`, | ||
`shiny::downloadButton`, and `shiny::icon` using | ||
[Hover.css](https://github.com/IanLunn/Hover). | ||
|
||
## Installation | ||
Installation | ||
------------ | ||
|
||
You can install the development version of hover from GitHub with: | ||
|
||
``` r | ||
# install.packages("devtools") | ||
devtools::install_github("r4fun/hover") | ||
``` | ||
# install.packages("devtools") | ||
devtools::install_github("r4fun/hover") | ||
|
||
## Example | ||
Example | ||
------- | ||
|
||
Animate a button and icon by providing the animation name: | ||
|
||
``` r | ||
library(shiny) | ||
library(hover) | ||
library(shiny) | ||
library(hover) | ||
|
||
ui <- fluidPage( | ||
use_hover(), | ||
hover_action_button( | ||
inputId = "btn", | ||
label = "hello hover!", | ||
icon = icon("refresh"), | ||
button_animation = "rotate", | ||
icon_animation = "spin" | ||
) | ||
) | ||
ui <- fluidPage( | ||
use_hover(), | ||
hover_action_button( | ||
inputId = "btn", | ||
label = "hello hover!", | ||
icon = icon("refresh"), | ||
button_animation = "rotate", | ||
icon_animation = "spin" | ||
) | ||
) | ||
|
||
server <- function(input, output, session) { | ||
|
||
} | ||
server <- function(input, output, session) { | ||
} | ||
|
||
shinyApp(ui, server) | ||
``` | ||
shinyApp(ui, server) | ||
|
||
The `hover` package essentially takes the `shiny::actionButton` source | ||
code and applies the necessary Hover.css classes to make things move. | ||
|
||
## Acknowledgements | ||
Acknowledgements | ||
---------------- | ||
|
||
This package was built using the following tools: | ||
|
||
- [Hover.css](https://github.com/IanLunn/Hover), the underlying CSS | ||
- [shiny](https://github.com/rstudio/shiny), the source code for | ||
- [Hover.css](https://github.com/IanLunn/Hover), the underlying CSS | ||
- [shiny](https://github.com/rstudio/shiny), the source code for | ||
`hover_button` | ||
|
||
Without these, this package wouldn’t have been possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters