Giter Site home page Giter Site logo

shinyhelper's Introduction

ShinyHelper (previously called shinier)

A package extending package shiny (in very minor ways) and assisting in the creation of Shiny interactive web applications. As I learn more about Shiny, I may end-of-life this. But for now, here we go!

Features

If you don't know anything about Shiny, you should visit the R Studio folks. They have a nice Shiny Tutorial, too. Package shinier includes functions (well, one function at this point) that may ultimately be included in package shiny. Other functions don't belong in package shiny and might be maintained here for the purpose of extending Shiny functionality.

Installation

The package is in development and may be unstable. I'll try to keep the master branch in working order on Github, so have a look at my Github repository. Once it has some functionality that someone might actually use, I'll put it on CRAN.

Getting Started

The package includes a sample data set, from the 2012 iteration of the Yale/Columbia Environmental Performance Index. Try this in R:


require(devtools)
install_github('ShinyHelper', 'jayemerson')
library(ShinyHelper)
demo("EPI_2012")
runApp("EPI_2012") # Interactive, not over the web


When you're done, have a look at the files in the EPI_2012 folder that was created by the demo. This sample application uses the basics of Shiny. The same application could be created in different ways by directly authoring ui.R and server.R. The use of more advanced Shiny features would require this. To use package ShinyHelper to create your own application, examine the R code provided in the demo (ShinyHelper/demo/EPI_2012.R).

An Even Simpler Example


library(ShinyHelper)
shinySkeleton("toyapplication")
headerPanelAdd("My Toy Application")
sliderInputAdd("n", "Choose the sample size:", 100, 500, 100)
plotOutputAdd("myplot", plotcode =
'
hist(rnorm(input$n), main="Histogram from rnorm()")
abline(v=0, lwd=3, col="red")
')
createApp("toyapplication")
runApp("toyapplication") # Interactive, not over the web


License

The ShinyHelper package is licensed under the GPLv3.

shinyhelper's People

Contributors

jayemerson avatar mspan avatar

Stargazers

 avatar Yi Wang avatar Carson Sievert avatar timelyportfolio avatar

Watchers

 avatar sk avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.