R Shiny 2 Minute Overview

preview_player
Показать описание
Free Course at

How does Shiny work?

Having a general understanding of this can really help you to be more effective at building applications.

A shiny application consists of two key components: a server that runs your R code and a user interface or UI that runs through a user's web browser.

The UI will contain a layout which can place input fields and outputs such as visualizations.

Input fields are things like text boxes drop-down menus and calendar controls that send their values back to the R server. The R server then updates its calculations and visualizations which get sent back to the UI to be displayed.

It's important to note that Shiny applications always need a server running R to work when you deploy your applications this will either be somewhere on the internet or somewhere on your network. If you have R installed on your computer R can launch a mini web server to run the application just on your computer. This is what happens every time we run an app in our course examples. This can be a quick and easy way to share your application with other users without setting up a server but won't work if people don't have R plus the necessary libraries installed.

In the next video we'll take a look at my favorite new R package that makes building Shiny applications even faster easier and more flexible.
Рекомендации по теме
Комментарии
Автор

I would recommend to post videos which are of 10 - 20 mins... As tips on R..common pitfalls in R....imp concepts in R... Something new like shiny.. Etc etc... It would be great

rrrprogram
Автор

Join 15, 000 to Learn Advanced Data Analytics Skills. Through step by step lectures, complete with downloadable code examples and student support.

R Tidyverse Reporting and Analytics for Excel Users
Level up your advanced data analytic skills. Learn one of the fastest easiest ways to work with large datasets.


R Shiny Flex Dashboards and Interactive Data Visualizations

The fastest, easiest way to get up to speed with R Shiny to transform your analysis into data driven applications.


Easy Excel Dashboards, Models, Visualizations with Power Query
Better than VBA. A no code way to easily transform data and build automated reports with Microsoft Excel

What do you want to know about advanced analytics and data science? Leave a comment below.

JonathanNg
Автор

Dear Sir,


I had a query, I am looking to save my if else output in a variable, which can dynamically change its value as the condition changes. I tried using a variable and put the if else in a loop() but the value stored in the variable is not changing dynamically. Please help. Below is the code

library(shiny)
library(shinydashboard)

ui <- shinyUI(fluidPage(

titlePanel("This is if else test"),

sidebarLayout(


sidebarPanel((" This is Test Panel"),

numericInput("price", "Enter the price", 10000),
numericInput("age", "Enter the age of the vehicle", 2)),

mainPanel(("This is main panel"),

textOutput("Myprice"), textOutput("myu"))

)

))

server <- shinyServer(function(input, output){

output$Myprice <- renderPrint({


save1<- ( if (input$age == 0){


paste("This is test", input$price + 1111)

paste("apple")

} else if(input$age == 1){

input$price +2222
}else if(input$age == 2){

input$price +3333
}else if(input$age == 3){

input$price +4444
} else {

0
}
)

})

outout$myu <- rendertext({


save1

})
})

shinyApp(ui, server)

mayanktripathi
Автор

Hi,
Is it possible to upload a Csv data into shiny app and use it in R?

nilojansritharan