library(tidyverse)
library(rmdWidgets)
knitr::opts_chunk$set(echo = F)

R Markdown

HTML: checkbox

rmd_checkbox(c("Yes", "No", "DK"), 0, inline = F, format = "html")
rmd_checkbox(c("Yes", "No", "DK"), 0, label = "", format = "html")
rmd_checkbox(c("Yes", "No", "DK"), 1, label = "Label", format = "html")
rmd_checkbox(c("Yes", "No", "DK"), c(2, 3), label = "Label not inline", label_inline = F, format = "html")
rmd_checkbox(c("Yes", "No", "DK"), c(2, 3), label = "Choices not inline", inline = F, format = "html")

HTML: textbox

rmd_textbox(text = "aaaaaaaaaa", backcolor = "white", textcolor = "red", format = "html")
rmd_textbox(text = "aaaaaaaa\nbbbbbbbbbbbbbbbbb\nccccc", backcolor = "gray", textcolor = "white", format = "html", type = "info")
rmd_textbox(text = "aaaaaaaaaaaaaaaaaaaaaaaaaaa", backcolor = "yellow", textcolor = "black", format = "html", type = "warning")
rmd_textbox(text = "aaaaaaaaaaaaaaaaaaaaa\n\naaaaaa", backcolor = "orange", textcolor = "white", format = "html", type = "warning")


hebrewseniorlife/rmdWidgets documentation built on May 9, 2019, 5:02 a.m.