A series of shiny modules to help shiny sense the world around it.
shinyinputs seemed kinda lame.
How do I use it?
shinysense is not currently on CRAN. To install it use the
devtools github function.
Once the app is installed just included it in your shiny app the way you usually would:
#my super cool shiny app library(shiny) library(shinysense)
There currently is no website for the documentation to reside in, but all the functions are documented. To figure out how to use these see the demo code posted below or just in R do the standard documentation search.
#I have no idea how these ridiculous functions work! ?shinydrawr ?shinydrawrUI #oh, I still have no idea.
shinyswipr: Embeds a card that can be swiped in different directions, the swipe direction is returned to shiny.
shinydrawr: Draws a line chart that obscures the end of the results, the user then draws what they think the rest of the chart is and then the rest of the chart is revealed.
- See this blog post on how to use draw charts inside and outside of shiny.
- Blatently stolen from the New York Times article You Draw It: What Got Better or Worse During Obama’s Presidency.
- Demo. Code.
shinyear: Records audio on a button press and returns the fast-fourier transformed signal to the server.
shinysee: Record images from a a webcam or mobile camera (android only unfortunately).
- Coming soon.
shinypopup: A lot of times when you're developing an app using the above senses you need to let your user's know you're collecting their data. This module creates a popup that obscures a given section of your app that forces the user to accept your terms before they can go any further.
Nothing works, what do I do?
The probability of there being bugs in these functions is unfortunately high. If you've found one I would be delighted if you could file a new issue here. I'll try my best to at least respond.