Adds a full-screen overlay of rain, snow, or meteors to the Shiny app or RMarkdown document.
Usage
weather(
type = "snow",
density = 1,
speed = 1,
fullscreen = NULL,
width = NULL,
height = NULL,
elementId = NULL
)
weatherOutput(outputId, width = "100%", height = "0px")
renderWeather(expr, env = parent.frame(), quoted = FALSE)Arguments
- type
Character. One of "snow", "rain", "meteor", or "none" (to stop the effect).
- density
Numeric. Multiplier for particle count (default 1).
- speed
Numeric. Multiplier for movement speed (default 1).
- fullscreen
Logical. If TRUE, forces the effect to cover the whole page (useful for RMarkdown). If NULL (default), it auto-detects if you are in Shiny.
- width
Must be a valid CSS unit (like '100%', '400px', 'auto') or a number.
- height
Must be a valid CSS unit (like '100%', '400px', 'auto') or a number.
- elementId
Optional ID.
- outputId
output variable to read from
- expr
An expression that generates weather
- env
The environment in which to evaluate
expr.- quoted
Is
expra quoted expression?