Giter Club home page Giter Club logo

shiny's Introduction

Shiny

Travis: Travis Build Status

AppVeyor: AppVeyor Build Status

Shiny is a new package from RStudio that makes it incredibly easy to build interactive web applications with R.

For an introduction and examples, visit the Shiny Dev Center.

Bootstrap 4 migration

Backward compatibility is not preserved due to a complete rewrite of Bootstrap. The migration guide from v3 is here: https://v4-alpha.getbootstrap.com/migration/

  • Major: Dropped IE8, IE9, and iOS 6 support. v4 is now only IE10+ and iOS 7+. For sites needing either of those, use v3.
  • Major: Dropped icons from Bootstrap. Only font-awesome icons are included in Shiny and supported.

See this BUGs for current BS4 status: rstudio#1604 and rstudio#1655

Features

  • Build useful web applications with only a few lines of code—no JavaScript required.
  • Shiny applications are automatically "live" in the same way that spreadsheets are live. Outputs change instantly as users modify inputs, without requiring a reload of the browser.
  • Shiny user interfaces can be built entirely using R, or can be written directly in HTML, CSS, and JavaScript for more flexibility.
  • Works in any R environment (Console R, Rgui for Windows or Mac, ESS, StatET, RStudio, etc.).
  • Attractive default UI theme based on Bootstrap.
  • A highly customizable slider widget with built-in support for animation.
  • Prebuilt output widgets for displaying plots, tables, and printed output of R objects.
  • Fast bidirectional communication between the web browser and R using the httpuv package.
  • Uses a reactive programming model that eliminates messy event handling code, so you can focus on the code that really matters.
  • Develop and redistribute your own Shiny widgets that other developers can easily drop into their own applications (coming soon!).

Installation

To install the stable version from CRAN, simply run the following from an R console:

install.packages("shiny")

To install the latest development builds directly from GitHub (this fork), run this instead:

if (!require("devtools"))
  install.packages("devtools")
devtools::install_github("dmpe/shiny", ref = "bootstrap4_changes")

Getting Started

To learn more we highly recommend you check out the Shiny Tutorial. The tutorial explains the framework in-depth, walks you through building a simple application, and includes extensive annotated examples.

We hope you enjoy using Shiny. If you have general questions about using Shiny, please use the Shiny mailing list. For bug reports, please use the issue tracker.

Bootstrap 3 migration

Shiny versions 0.10.2.2 and below used the Bootstrap 2 web framework. After 0.10.2.2, Shiny switched to Bootstrap 3. For most users, the upgrade should be seamless. However, if you have have customized your HTML-generating code to use features specific to Bootstrap 2, you may need to update your code to work with Bootstrap 3.

If you do not wish to update your code at this time, you can use the shinybootstrap2 package for backward compatibility.

If you prefer to install an older version of Shiny, you can do it using the devtools package:

devtools::install_version("shiny", version = "0.10.2.2")

Development notes

The Javascript code in Shiny is minified using tools that run on Node.js. See the tools/ directory for more information.

Guidelines for contributing

We welcome contributions to the shiny package. Please see our CONTRIBUTING.md file for detailed guidelines of how to contribute.

License

The shiny package is licensed under the GPLv3. See these files in the inst directory for additional details:

  • COPYING - shiny package license (GPLv3)
  • NOTICE - Copyright notices for additional included software

shiny's People

Contributors

wch avatar jcheng5 avatar yihui avatar jjallaire avatar dmpe avatar bborgesr avatar jmcphers avatar trestletech avatar hadley avatar daattali avatar gaborcsardi avatar saurfang avatar crtahlin avatar nuno-agostinho avatar jeffreyhorner avatar albertosantini avatar akersting avatar aronatkins avatar dmbates avatar edwindj avatar eiriksm avatar kevinushey avatar mikelove avatar rcura avatar seanchrismurphy avatar sipemu avatar xydrolase avatar vnijs avatar pvictor avatar shrektan avatar

Stargazers

Luke Singham avatar

Watchers

James Cloos avatar  avatar

shiny's Issues

Display code panel

Beginning:
068
obrazek

As of now: (only after display : hidden is deleted)
image

https://github.com/rstudio/shiny/search?utf8=%E2%9C%93&q=showcase-code-position-toggle&type=

  • Issue, in part at least, is that even though style="width: 960px;" is respected within the first <td>, we have showcase-sxs-code-collapsed that is hidden when loaded due to dynamic JS code.

  • The code is properly shown only when browser is adjusted so that code is below. This is by default.

  • Picture gets created with wrong width.

{"errors":[],"values":{"plot":{"src":"session/f6e6b29e93c457bbfd558f5d3111ae9b/file/plot?w=&r=c3685610456ef0c8","width":999,"height":400,"coordmap":[{"domain":{"left":-3.78,"right":3.78,"bottom":-4.4,"top":114.4},"range":{"left":59.0399999999999,"right":968.76,"bottom":325.56,"top":58.04},"log":{"x":null,"y":null},"mapping":{}}]}},"inputMessages":[]}

960 is appWidth
1150 is totalWidth

[Besides Meta Issues] What is not working [as of April]

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.