Skip to content

Commit 5c1cc0b

Browse files
committed
Make R CMD Check happy!
1 parent 8b4fac1 commit 5c1cc0b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

R/plugin-easybutton.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ easyButtonStateList <- function(...) {
5858
#' @param states the states
5959
#' @export
6060
easyButton <- function(
61-
icon = htmltools::span(class='easy-button',''),
61+
icon = htmltools::span(class='easy-button','!'),
6262
title = "Easy Button",
6363
onClick = JS("function(btn, map){alert('That was easy!');}"),
6464
position = "topleft",
@@ -162,10 +162,10 @@ addEasyButton <- function(
162162
#' addEasyButtonBar(easyButtonList(
163163
#' easyButton(
164164
#' icon = htmltools::span(class='star','&starf;'),
165-
#' onClick = JS("function(btn, map){ alert("Button 1");}")),
165+
#' onClick = JS("function(btn, map){ alert('Button 1');}")),
166166
#' easyButton(
167167
#' icon = htmltools::span(class='star','&target;'),
168-
#' onClick = JS("function(btn, map){ alert("Button 2");}"))))
168+
#' onClick = JS("function(btn, map){ alert('Button 2');}"))))
169169
#'
170170
#'
171171
#' @export

inst/examples/easyButton.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
library(leaflet)
22

3-
#' Add two easy buttons
4-
#' first to set zoom level to 1
3+
#' Add two easy buttons.
4+
#' first to set zoom level to 1,
55
#' second to find your self
66
leaflet() %>% addTiles() %>%
77
addEasyButton(easyButton(
@@ -11,7 +11,7 @@ leaflet() %>% addTiles() %>%
1111
icon='fa-crosshairs', title='Locate Me',
1212
onClick=JS("function(btn, map){ map.locate({setView: true});}")))
1313

14-
14+
#' <br/><br/>Toggle Button to freeze/unfreeze clustering at a zoom level.
1515
leaflet() %>% addTiles() %>%
1616
addMarkers(data=quakes,
1717
clusterOptions = markerClusterOptions(),
@@ -47,7 +47,7 @@ leaflet() %>% addTiles() %>%
4747
)
4848
))
4949

50-
#' Add two easy buttons in a bar
50+
#' <br/><br/>Add two easy buttons in a bar
5151
#' first to set zoom level to 1
5252
#' second to find your self
5353
leaflet() %>% addTiles() %>%

man/addEasyButtonBar.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/easyButton.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)