Learn how to build interactive data-driven web apps in R using the Shiny package.
✏️ Course developed by Chanin Nantasenamat (aka Data Professor). Check out his YouTube
channel for more bioinformatics and data science tutorials:
⭐️ Code ⭐️
💻 Apps 1-5:
💻 Deploy Shiny App:
🔗 Medium blog posts for more data science tutorials
🔗 For updates connect via Newsletter:
🔗 Twitter:
⭐️ Course Contents ⭐️
⌨️ (0:00:00) Introduction
⌨️ (0:01:13) Introduction to Shiny
⌨️ (0:08:24) App 1 – Print User Input
⌨️ (0:21:12) App 2 – Display Histogram
⌨️ (0:32:07) App 3 – Machine Learning (Weather Dataset)
⌨️ (0:47:51) App 4 – Machine Learning (Iris Dataset)
⌨️ (1:05:03) App 5 – BMI Calculator
⌨️ (1:19:18) Deploy Shiny Apps to Heroku
🎉 Thanks to our Champion and Sponsor supporters:
👾 Wong Voon jinq
👾 hexploitation
👾 Katia Moran
👾 BlckPhantom
👾 Nick Raker
👾 Otis Morgan
👾 DeezMaster
👾 AppWrite
—
Learn to code for free and get a developer job:
Read hundreds of articles on programming:
❤️ Support for this channel comes from our friends at Scrimba – the coding platform that’s reinvented interactive learning:
source

Hi FCC Team.
sir i have doubt with few question which asked me by interviewer in interview that as fresher in R/Shiny Developer.
1. What happens if a required package is missing after deployment or while deployment?
2. The application works in dev. environment, but fails in production ?
3. If package installation suddenly fails during deployment?
i really need this answer by Chanin Nantasenamat aka data Professor
Going through the code. It seems there was an R update that doesn't automatically make strings as factors when reading a csv for App 3 which breaks some things. Adding ", stringsAsFactors = TRUE" to the read.csv line fixes this.
in session 3, when I ran the code, it says 'no package called 'RCurl'.
This is fantastic, thank you
good
😍
Very useful to beginners!….
Awesome
Thank you for the tutorial😊😊
What are the reasons for writing prediction result to csv then reading it back again? Can anyone say something about this?
Thanks.
Apllication activity 3, randomForest 4.7-1.1 do cannot create the model, Error in y – ymean : non-numeric argument to binary operator
In addition: Warning messages:
1: In randomForest.default(m, y, …) :
The response has five or fewer unique values. Are you sure you want to do regression?
2: In mean.default(y) : argument is not numeric or logical: returning
❤❤❤❤❤Very good application syni
why my includeMarkdown is not working? it does not shown the content in the md file
Great job. Shiny made a bit simple
Hi, great video, thanks very much. What is the advantage of deploying to Heroku rather than just publishing to Shinyapps? Thanks!
@NETSEDU8
Before the line defining the model, add:
weather$play = factor(weather$play)
weather$outlook = factor(weather$outlook)
=================================================================================
model <- randomForest(play ~ ., data = weather, ntree = 500, mtry = 4, importance = TRUE)
=================================================================================
play golf app
31:16 what does length.out = input$bins + 1 mean? Can you explain it to me in plain English? (The answer has been generated by ChatGPT.) In the Shiny app code, seq(min(x), max(x), length.out = input$bins + 1) is used to create a sequence of values that is used to define the bins for the histogram.
The seq function is used to create a sequence of evenly spaced values. In this case, the first argument min(x) is the starting value of the sequence, and the second argument max(x) is the ending value of the sequence. The length.out argument specifies the length of the sequence that should be generated.
The value of input$bins is the number of bins selected by the user using the sliderInput. The +1 is added to input$bins to ensure that the sequence has one more value than the number of bins selected by the user. This is because the hist function includes the rightmost edge of the last bin, so the number of breaks needed is bins+1.
Therefore, length.out = input$bins + 1 means that the seq function should generate a sequence of values that is input$bins + 1 long, starting at the minimum value of x and ending at the maximum value of x. This sequence of values is used to define the breaks or bins for the histogram.
Thanks a lot for this useful tutorials..
Is there any free alternatives to Heroku which is now paid service?
On Play Golf? I got an error
[1] Prediction no yes
<0 rows> (or 0-length row.names)
anyone can help me?
Smashed. Good stuff so far!
Hello Professor, thank you so much for the great video. I have a question in the App 3 how to add background color to the header title? COuld you please tell us?
Thanks so much for this. How can this app become a mobile app?
very cool – also funny how the youtube captions say SHINee like the kpop group lol
Thank you for this video.
Very useful 🙂
Hi! Nice video…One query. Between Tableau and R – shiny which would be the best to learn?
This is exactly what I was looking for thank you!
Hi Prof. Your tutorial is great. I am getting following error in both Play-Golf and IRIS programs related to randomForest.
Error in y – ymean : non-numeric argument to binary operator
In addition: Warning messages:
1: In randomForest.default(m, y, …) :
The response has five or fewer unique values. Are you sure you want to do regression?
2: In mean.default(y) : argument is not numeric or logical: returning NA
Very well explained professor, Thanks
Awesome stuff thank you so much for your time
Very helpful for my summer project! Thanks a bunch Prof Data
Thank you for sharing. Is it available some content for geomarketing?
This is great, thank you.