Shiny Cheat Sheet - RStudio

4 downloads 514 Views 805KB Size Report
web browsers (images, CSS, .js, etc.) Must be ... be run once each time a user visits your app (or refreshes his or her
Shiny Cheat Sheet

1. Structure

render* functions

Each app is a directory that contains a server.R file and usually a ui.R file (plus optional extra files)

function

learn more at shiny.rstudio.com Shiny 0.10.0 Updated: 6/14

2. server.R

A set of instructions that build the R components of your app. To write server.R:

.r ! .r ! ! ! ! "

server.R ui.R DESCRIPTION README www

•F Refer to widget values with input$

input changes, the server will rebuild each output that depends on it (even if the dependence is indirect). You can control this behavior by shaping the chain of dependence. RStudio® and Shiny™ are trademarks of RStudio, Inc. CC BY RStudio [email protected] 844-448-1212 rstudio.com

B

D

input$a

output$z

output$z