knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This is package is to create a flash card for Shiny application with desired data.frame.
Simply create a data frame with front
column and back
column. Then put this data frame into flashCard()
function, we will get a nice flash card.
library(flashCard) df1 <- data.frame( front = c("Title front","contentfront", "content second line"), back =c("Title back","content back", "second line") ) flashCard(df1, elementId = "card", front_text_color = "white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.