countdown makes it easy to drop in a simple countdown timer in slides and HTML documents written in R Markdown.
library(countdown)
countdown(minutes = 0, seconds = 15)
Check out countdown in its native environment in the countdown presentation.
You can install countdown from CRAN
install.packages("countdown")
or you can install the development version of countdown from gadenbuie.r-universe.dev
options(repos = c(
gadenbuie = 'https://gadenbuie.r-universe.dev',
getOption("repos")
))
install.packages('countdown')
or from GitHub
# install.packages("remotes")
remotes::install_github("gadenbuie/countdown", subdir = "r")
countdown ships with a Shiny app for an interactive full-screen countdown timer!
To launch the app, run
countdown_app()
or use the version hosted online at apps.garrickadenbuie.com/countdown.