Learn R Programming

phosphoricons (version 0.2.1)

html_dependency_phosphor: HTML dependency for Phosphor Icons

Description

Allow to explicitly load dependency for using Phosphor icons.

Usage

html_dependency_phosphor()

Arguments

Value

An htmltools::htmlDependency() object.

Examples

Run this code

library(shiny)
library(phosphoricons)

ui <- navbarPage(
  title = "Phosphor Icons",
  header = list(
    html_dependency_phosphor()
  ),
  tabPanel("Home", icon = ph_i("house")),
  tabPanel("Parameters"),
  tabPanel("Results")
)

server <- function(input, output, session) {
  
}

if (interactive())
  shinyApp(ui, server)

Run the code above in your browser using DataLab