Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 1.05 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.05 KB

bsselectR

Add bootstrap-select dropdown menus to your R Markdown documents without Shiny

To install: devtools::install_github("walkerke/bsselectR")

The bsselect function will generate an htmlwidget that allows you to interactively display text, images, and iframes from a named vector. More documentation is coming soon; in the meantime, here is a preview of how the package works:

library(bsselectR)

quotes <- c("Look deep into nature, and then you will understand everything better.", 
            "A fool thinks himself to be wise, but a wise man knows himself to be a fool.", 
            "My mission in life is not merely to survive, but to thrive; and to do so with some passion, 
            some compassion, some humor, and some style.")

quotes <- setNames(quotes, c("Einstein", "Shakespeare", "Angelou"))

bsselect(quotes, type = "text", height = 200)

You can even make your R Markdown presentations interactive!