fireworkMessenger {r2fireworks}R Documentation

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)

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

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

Examples

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


[Package r2fireworks version 0.1.0 Index]