knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of flipdownWidgets is to include a countdown widget https://github.com/PButcher/flipdown in all R contexts with the convenience of 'htmlwidgets'.
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")
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") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.