Presentation on theme: "Shiny in R the fundamentals of getting started. What Is It? New package in R to create web apps Web app built entirely in R, but can also incorporate."— Presentation transcript:
server.R in Detail – input$tag input$tag Whatever options are selected under sidebarPanel() in ui.R is passed to the server.R script input$dataset becomes either “Products”, “Clients”, or “All data” string, depending on which one the user chooses input$dataset is reactionary, which means it always changes each time the user decides to select any new value Beware!! The $ in input$tag here does not refer to any column in the input object tag 10
server.R in Detail – input$tag (continued) What does input$dataset do? Anything you want to do with it 11
The Flow ui.R input$tag server.R output$tag Start 12 input$dataset = “Products” OR input$dataset = “Clients” OR input$dataset = “All data”
server.R in Detail – output$tag ‘output’s themselves have tags! The output is passed to ui.R and recognized under mainPanel() tag 13
Summary User chooses the inputs Inputs are stored in input$tags input$tags are manipulated in server.R server.R returns output (tables, charts, printed text etc.) in the form of output$tags The output$tags from server.R is then accepted by ui.R and displayed on the dashboard for the user 15
Tips Start small Keep track of your parentheses Work on ui.R first Reference my cheatsheet github.com/alaneng/personal Frustration will be commonplace https://groups.google.com/forum/?fromgroups#!forum/shiny-discuss Check out Glimmer -- host your web app online! 16
Your consent to our cookies if you continue to use this website.