Title: Create a Flash Card
Version: 0.1.0
Description: Create a flip over style Flash Card with desired data frame for Shiny application.
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
License: MIT + file LICENSE
Imports: htmlwidgets, jsonlite
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.0.2
NeedsCompilation: no
Packaged: 2020-08-07 15:39:40 UTC; Jiena_Mclellan
Author: Jiena McLellan ORCID iD [aut, cre], Michael Condouris ORCID iD [ctb]
Maintainer: Jiena McLellan <jienagu90@gmail.com>
Repository: CRAN
Date/Publication: 2020-08-13 09:10:06 UTC

Create a flash card

Description

Create a flash card with desired data frame

Usage

flashCard(
  data,
  frontColor = "#090e87",
  backColor = "#3443c9",
  front_text_color = "white",
  back_text_color = "white",
  width = "300px",
  height = "135px",
  elementId = NULL
)

Arguments

data

df with front and back columns

frontColor

frond side background color

backColor

back side background color

front_text_color

frond text color

back_text_color

back text color

width

width

height

height

elementId

element id

Examples

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 = "grey")



Shiny bindings for flashCard

Description

Output and render functions for using flashCard within Shiny applications and interactive Rmd documents.

Usage

flashCardOutput(outputId, width = "300px", height = "135px")

renderFlashCard(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

output variable to read from

width

width of the widget

height

height of the widget

expr

An expression that generates a flashCard

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.