知行合一

flipdownWidgets

A Wrapper of JavaScript Library 'flipdown.js'.

The goal of flipdownWidgets is to include a countdown widget in all R contexts with the convenience of ‘htmlwidgets’. See flipdownWidgets for more informations.

Installation

You can install the released version of flipdownWidgets from CRAN with:

install.packages("flipdownWidgets")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("fanggong/flipdownWidgets")

Example

This is a basic example which shows you how to use flipdownWidgets:

library(flipdownWidgets)
flipdownWidgets(
  Sys.time() + 60*60*24*100, theme = "dark", 
  headings = c("dats", "hours", "minutes", "seconds")
)