Skip to content

Commit

Permalink
prepare for CRAN release
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Feb 25, 2019
1 parent 7b20f5b commit 609c986
Show file tree
Hide file tree
Showing 261 changed files with 6 additions and 1,320 deletions.
5 changes: 2 additions & 3 deletions R/icons.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
#' Build a tabler icon
#'
#' @param name Name of icon. See \url{https://preview.tabler.io/icons.html} for all valid icons.
#' @param lib Icon library ("feather", "font-awesome", "flag", "payment").
#' @param lib Icon library ("feather", "font-awesome", "payment").
#'
#' @author David Granjon, \email{dgranjon@@ymail.com}
#'
#' @export
tablerIcon <- function(name, lib = c("feather", "font-awesome", "flag", "payment")) {
tablerIcon <- function(name, lib = c("feather", "font-awesome", "payment")) {
lib <- match.arg(lib)
iconCl <- switch(
lib,
"feather" = "fe fe-",
"font-awesome" = "fa fa-",
"flag" = "flag flag-",
"payment" = "payment payment-"
)
shiny::tags$i(class = paste0(iconCl, name))
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/tablerIcon.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions inst/examples/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ library(shinyEffects)
library(echarts4r)
library(shinyWidgets)

options(shiny.trace = TRUE)

# datas flowGl
vectors <- expand.grid(x = -3:3, y = -3:3)
mu <- 1
Expand Down Expand Up @@ -67,8 +65,6 @@ shiny::shinyApp(
navbar = tablerDashNav(
id = "mymenu",
src = "https://preview.tabler.io/demo/brand/tabler.svg",
tablerIcon(name = "fr", lib = "flag"),
tablerIcon(name = "ch", lib = "flag"),
tablerDropdown(
tablerDropdownItem(
title = "Item 1 title",
Expand Down
3 changes: 0 additions & 3 deletions inst/examples/tabs/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ library(shinyEffects)
library(echarts4r)
library(shinyWidgets)

options(shiny.trace = TRUE)

# datas flowGl
vectors <- expand.grid(x = -3:3, y = -3:3)
Expand Down Expand Up @@ -79,8 +78,6 @@ shiny::shinyApp(
"Test"
)
),
tablerIcon(name = "fr", lib = "flag"),
tablerIcon(name = "ch", lib = "flag"),
tablerDropdown(
tablerDropdownItem(
title = "Item 1 title",
Expand Down
Loading

0 comments on commit 609c986

Please sign in to comment.