Skip to content
No description, website, or topics provided.
R
Branch: master
Clone or download
Latest commit cbb2026 Sep 18, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R Import shiny so works when shiny not attached Sep 17, 2014
man Lots of implementation and documentation Sep 17, 2014
.Rbuildignore Use travis Sep 17, 2014
.gitignore Initial commit Sep 17, 2014
.travis.yml Use travis Sep 17, 2014
DESCRIPTION Update DESCRIPTION Sep 17, 2014
NAMESPACE Import shiny so works when shiny not attached Sep 17, 2014
README.md Update README.md Sep 18, 2014
shinySignals.Rproj Initial commit Sep 17, 2014

README.md

shinySignals

Build Status

Shiny is a reactive programming framework, but it focusses mainly on the nuts and bolts of generating interactive analysis apps. shinySignals is an attempt to port more functional programming tools that compute on signals (reactives).

Currently, shinySignals only implements the Signal and Time libraries from the Elm programming language. It's expected that this package will grow over time to include useful techniques from other FRP frameworks, and to include uniquely R-like features.

Installation

shinySignals is currently only available on github. Run the following code to install it:

# install.packages("devtools")
devtools::install_github("hadley/shinySignals")

Elm

Compared to the Elm API, the main change is that the key signal always comes first. This leads to a more natural style of composition using %>%:

library(shinySignals)
fps(30) %>% count()

step <- reactive({fps(30); sample(c(-1, 0, 1), 1)})
walk <- step %>% reducePast(`+`, 0)
You can’t perform that action at this time.