Learn R Programming

r2fireworks (version 0.1.0)

fireworkMessenger: Widget to initiate or terminate fireworks display

Description

Add or remove fireworks graphics from page

Add fireworks visuals to page

Remove fireworks visuals from page

Add fireworks visuals to Rmarkdown page

Usage

fireworkMessenger(
  type,
  duration = NULL,
  speed = NULL,
  particleCount = 30,
  session = getDefaultReactiveDomain()
)

showFireworks( speed = 1, particleCount = 40, session = getDefaultReactiveDomain() )

removeFireworks(session = getDefaultReactiveDomain())

addRmdFireworks(speed = 1, particleCount = 40)

Value

inclusion or exclusion of fireworks from page

visible firework canvas on the page

removal of firework canvas from the page

addition of firework canvas on the page

Arguments

type

type of action e.g start, remove

duration

duration of fireworks outbursts

speed

speed of display of fireworks

particleCount

particle size of fireworks

session

session object from server

Examples

Run this code
# In R markdown documents
library(r2fireworks)
useFireworks()
addRmdFireworks(particleCount = 100, speed = 3)

Run the code above in your browser using DataLab