countdown makes it easy to drop in a simple countdown timer in slides and HTML documents written in Quarto or R Markdown.
library(countdown) countdown(minutes = 0, seconds = 15)
Want to know more?
Check out countdown in its native environment in the countdown presentation.
Installation
Quarto Extension
quarto add gadenbuie/countdown/quarto
This will install the extension under the _extensions subdirectory. If
you’re using version control, you will want to check in this directory.
To use the extension, use the {{< countdown >}} shortcode. For example, a countdown clock can be created by writing anywhere:
{{< countdown "5:30" >}}
Learn more in the Quarto countdown README.
R Package
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")
Learn more in the R countdown README.
