Rstudio Tutorial: developing a web application with Shiny package

Sdílet
Vložit
  • čas přidán 12. 10. 2014
  • This tutorial provides a simple, step by step guide to develop a web application from scratch using Rstudio. Rstudio+Shiny enables you to conduct statistical analyses by R and share it as an interactive HTML page.

Komentáře • 82

  • @LegendRein
    @LegendRein Před 4 lety +17

    I actually wrote it like this ( if you only want to use 1 script)
    library(shiny)
    ui

  • @lastnamefirstname8843
    @lastnamefirstname8843 Před 6 lety +1

    Creating web apps with RShiny clicked in my head when I saw this video, and I'm going to say it was because of the quality teaching. Great vid!

  • @danielnoon8632
    @danielnoon8632 Před 4 lety +8

    Thanks for the tutorial. It worked for me but I reached some difficulties at some point. Here is the code which worked for me.
    After setting my working directory, I made two files; ui.R & Server.R.
    The User Interface file contained:
    library(shiny)
    shinyUI(
    pageWithSidebar(
    headerPanel("My First Shiny App"),
    sidebarPanel(
    selectInput("Distribution", "Please Select Distribution Type",
    choices = c("Normal", "Exponential")),
    sliderInput("sampleSize", "Please select sample size",
    min = 100, max = 5000, value = 1000, step = 100),
    conditionalPanel(condition = "input.Distribution == 'Normal'",
    textInput("mean", "Please select the mean", 10),
    textInput("sd", "Please select the Standard Deviation", 3)),
    conditionalPanel(condition = "input.Distribution == 'Exponential'",
    textInput("Lamda", "Please select Exponential Lamda", 1))),
    mainPanel(
    plotOutput("myPlot")
    )
    )
    )
    The Server file contained:
    library(shiny)
    shinyServer(
    function(input, output, session) {
    output$myPlot

  • @oblomist
    @oblomist Před 8 lety +2

    Fantastic intro to shiny. Thank you!

  • @ajaysingh-pm2xl
    @ajaysingh-pm2xl Před 8 lety +1

    Great learning. Plz keep sharing such tutorials.

  • @taobrien
    @taobrien Před 9 lety +3

    Thanks, nice intro to Shiny and Rstudio :-)

  • @shalinianunay2713
    @shalinianunay2713 Před 9 lety +2

    superub video man....good kick start with shiny

  • @machineburning
    @machineburning Před 4 lety

    Good introduction to Shiny. Thanks for this!

  • @anubhavsood1510
    @anubhavsood1510 Před 9 lety +1

    Great simple video...

  • @sebastianfranciscotacoraam4322

    Great tutorial! I did really helped me to understand Shiny. Thanks!!!

  • @UddhavArote
    @UddhavArote Před 7 lety

    Good tutorial to start with Shiny directly!

  • @isaiasmorales501
    @isaiasmorales501 Před 6 lety

    Thanks, very useful tutorial.

  • @user-cr6mc3ww1l
    @user-cr6mc3ww1l Před rokem

    Thank you! It was incredibly helpful and straightforward

  • @joannan6855
    @joannan6855 Před 4 lety

    Nice tutorial, thank you!

  • @aneeshkumar6570
    @aneeshkumar6570 Před 3 lety

    Very nice presentation.u r covering so much of shiny codes in a small presentation😀

  • @dheerajkura5914
    @dheerajkura5914 Před 7 lety

    Very Nice Explanation..

  • @KMery
    @KMery Před 5 lety

    Muchas gracias! me ha resultado muy práctico, saludos.-

  • @user-bo1pf1sq3l
    @user-bo1pf1sq3l Před 5 lety

    Thank you for your video. It helps me a lot

  • @omidghasemi1401
    @omidghasemi1401 Před 3 lety

    Thanks Ehsan. It was an amazing tutorial.

  • @D3_Business_Analytics
    @D3_Business_Analytics Před 6 lety

    What a remarkable package it is.....I just got rid of 1000 lines of painful code in HTML/PHP/Bootstrap......just make a simple DONUT chart !!!!

  • @andd1994
    @andd1994 Před 7 lety

    Thanks a lot, man!

  • @imouranasoumanou7954
    @imouranasoumanou7954 Před rokem

    great tutorial, thank you

  • @singlebinary
    @singlebinary Před 7 lety +20

    Be aware that he switched the code in UI and Server. If you follow his steps, the code will not work. Read comments below before attempting to follow his tutorial.

    • @angelsface200
      @angelsface200 Před 7 lety +1

      Thanks for the heads up!

    • @ehsanjahanpour797
      @ehsanjahanpour797  Před 7 lety +1

      Thanks Rohit. I will go ahead and review the tutorial

    • @singlebinary
      @singlebinary Před 7 lety +1

      I must add, Ehsan thank you for putting this tutorial together. It takes a lot of effort and time so **really** appreciate it.

    • @the_feature_selector859
      @the_feature_selector859 Před 7 lety +1

      Im still confused on how to fix it

    • @shaz4107
      @shaz4107 Před 7 lety

      Can you explain how he mixed it?

  • @cime_hime
    @cime_hime Před 3 lety

    it helps a lot, thank youu som much🥺

  • @PeniHausia
    @PeniHausia Před 8 lety +20

    I was watching your video because I wanted to apply Shiny for my data analysis but when I run the runApp it says that the ui is missing. How did you combine the file (ui and server)? And in 3:39 timeline of the footage - you've used ui.R for shinyServer rather than shinyIU. Please can you explain.

    • @shaz4107
      @shaz4107 Před 7 lety

      exactly the same issue

    • @Sociography00
      @Sociography00 Před 7 lety

      Keep both files open in Rstudio

    • @shaz4107
      @shaz4107 Před 7 lety

      What do you mean by open? I have created 2 fiels separately but how can I make it one?

    • @ak-ot2wn
      @ak-ot2wn Před 6 lety +6

      wtf.. this guy in video switched contents of those 2 files

  • @herudinejad
    @herudinejad Před 8 lety +1

    Thanks Ehsan, good presentation

  • @unknorel5245
    @unknorel5245 Před 9 lety +3

    Great video!!!
    Can i ask you how did you open shiny app in browser(firefox) without running R?
    Thanks

  • @bartlettcantor374
    @bartlettcantor374 Před 6 lety +8

    ERROR: argument "ui" is missing, with no default, not sure what i did wrong

  • @michaelmutekeri8770
    @michaelmutekeri8770 Před 4 lety

    thanx mate for the introduction, also provide the source codes for reference like in github or on a link. Thanks Daniel Noon, please refer to his source code to fix the confusion of the mix ups between server and UI

  • @shaz4107
    @shaz4107 Před 7 lety +1

    Hi please explain how you mixed the ui and server?

  • @elaafshaikh7065
    @elaafshaikh7065 Před 7 lety

    how can i connect rstudio with php i actually want to display my rstudio graphs and data onto my website,, i am using local server xampp

  • @ujjwalchaudhary4156
    @ujjwalchaudhary4156 Před 6 lety

    He din't interchange anything between shinyUI & server files, he just renamed the shinyUI to shinyServer and forgot to explain it or he smartly did it because the code will through the error and he will receive the comments :) , although very good video thanks :)

  • @pavanthanuj90
    @pavanthanuj90 Před 5 lety

    Is it possible to only draw a histogram or can we make ggplots????

  • @sauravjha9422
    @sauravjha9422 Před 4 lety

    Hey how to do sentiment analysis of any excel file using shiny.please help!

  • @ansh47
    @ansh47 Před 6 lety

    ERROR:object 'size' not found, how to resolve this error?

  • @sandipdixitmusic
    @sandipdixitmusic Před 2 lety

    JVM could not be found - I am getting this error

  • @ricardocontreras
    @ricardocontreras Před 4 lety

    can i have my own domain for my shiny apps?

    • @Christunaa
      @Christunaa Před 4 lety +1

      Yes. Shiny.rstudio allows you to host a website on their server. Look into it on their site

  • @salmabanane5615
    @salmabanane5615 Před rokem

    Hello, thanks for this tutorial it's so helpful, and i want to know if possible how can i create a shiny app if i need to use a function to generate the table where i have all the informations i need to use for my histogram
    Cordially

  • @MrCHEMAI44
    @MrCHEMAI44 Před 7 lety

    He interchanged the Codes, that is why I have been receiving an error from y side.

  • @elaafshaikh7065
    @elaafshaikh7065 Před 7 lety +1

    can i ask you how to connect php in rstudio?

    • @ehsanjahanpour797
      @ehsanjahanpour797  Před 7 lety

      Elaaf, I have never included Rstudio elements into PHP codes. Have you tried using Rmarkdown? Rmarkdown is used to create HTML pages and transfer that your host.

  • @scoobydoo462
    @scoobydoo462 Před 7 lety

    please how to correct this error (the html page keep closing when i runApp())
    Warning: Error in registerShinyDebugHook: attempt to set an attribute on NULL Stack trace (innermost first): 1: runApp Error in registerShinyDebugHook(params) : attempt to set an attribute on NULL

    • @babccn
      @babccn Před 6 lety

      hey.. facing the same issue. did you figure it out?

    • @TimmmTim
      @TimmmTim Před 5 lety

      @@babccn same

  • @chacmool2581
    @chacmool2581 Před rokem

    Does this skill land jobs?

  • @peymaneftekhari5248
    @peymaneftekhari5248 Před rokem

    hi mr Ehsan. I am peyman . Is it possible to send me working directory that you copy and paste? kind regards

  • @dulcebick
    @dulcebick Před 6 lety

    I have this ERROR: argument "ui" is missing, with no default :(

    • @ehsanjahanpour797
      @ehsanjahanpour797  Před 6 lety +1

      dulce bick do you have your codes on a github?

    • @dulcebick
      @dulcebick Před 6 lety +1

      I solved, don´t problem..

    • @dulcebick
      @dulcebick Před 6 lety

      No, je is for a company this work, I solved the problem, but I have a doubt, If I have a code finished without shiny, and I would like to have an interface to help to choose the file and put a name to a new file created, how I can do it using shiny? if the read.xlsx and write.csv is into the same code?

    • @luclof
      @luclof Před 6 lety

      I need the solution to this problem! Please!

    • @dulcebick
      @dulcebick Před 6 lety

      in specific?

  • @a1primescreen174
    @a1primescreen174 Před 5 lety +1

    Actually I got error = could not find function "siderbarPanel"

    • @TimmmTim
      @TimmmTim Před 5 lety

      be sure you named it well and saved it after renaming it

  • @Tecwallet
    @Tecwallet Před 8 lety +1

    Hi Ehsan - Thanks for sharing such a great tutorial on R Programming. I would also like to add this video at tecwallet.com under your name with reference to your youtube channel. Let me know if you are fine with that.
    Keep up the good work !!

    • @ehsanjahanpour797
      @ehsanjahanpour797  Před 8 lety +1

      Hello, Thank you for your comment. Please feel free to post it on Techwallet.com and let me know if you need any information or document.

    • @Tecwallet
      @Tecwallet Před 8 lety

      Thanks Ehsan for allowing us to share your work. Let me know if you want me to use your email id in account creation at Tecwallet. Else will use an internal email for your videos.
      Thanks Again !!