![ehsan jahanpour](/img/default-banner.jpg)
- 5
- 206 321
ehsan jahanpour
Registrace 1. 10. 2011
Video
Improving R execution speed by profiling the script and finding the bottleneck
zhlédnutí 316Před 4 lety
This video is using profvis package in R to find the bottleneck in Rscripts and improve execution speed by changing for loop structures and parallel computing using foreach library. The technical details on this video are available in two medium blogs: The Good, The Bad, The Ugly in R: medium.com/@jahanpour.ehsan/the-good-the-bad-the-ugly-in-r-72e55b2219cc You need regular check-ups, so do your...
Rstudio Tutorial: Deploying the web application developed by Rstudio over shinyapp server
zhlédnutí 40KPřed 9 lety
In this video I show how to deploy a web application that is developed by shiny package in rstudio. I use the "shinyapps" package in rstudio to directly upload the application onto the shinyapps.io server. You can find the the steps to build this application at czcams.com/video/Gyrfsrd4zK0/video.html. The application itself is available at: Firstshinyapp.shinyapps.io/firstShinyApp/.
Rstudio Tutorial Part 1: How to write a web application using RStudio
zhlédnutí 2,8KPřed 9 lety
This Tutorial provides you with simple and step by step guide to develop a simple shiny application from scratch. I only assume that you have already installed Rstudio on your machine. My OS is Linux Ubuntu but the steps are similar for other OS such as windows, etc
Rstudio Tutorial: developing a web application with Shiny package
zhlédnutí 163KPřed 9 lety
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.
Thank you! It was incredibly helpful and straightforward
great tutorial, thank you
Does this skill land jobs?
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
hi mr Ehsan. I am peyman . Is it possible to send me working directory that you copy and paste? kind regards
JVM could not be found - I am getting this error
it helps a lot, thank youu som much🥺
Thanks Ehsan. It was an amazing tutorial.
Very nice presentation.u r covering so much of shiny codes in a small presentation😀
I actually wrote it like this ( if you only want to use 1 script) library(shiny) ui <- fluidPage( pageWithSidebar( headerPanel("My 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 Standard Deviation", 3)), conditionalPanel(condition = "input.Distribution == 'Exponential'", textInput("Lambda", "Please Select Lambda:",1)) ), mainPanel( plotOutput("myPlot") ) ) ) server <- function(input, output, session) { output$myPlot <- renderPlot({ distType <- input$Distribution size <- input$sampleSize if(distType == "Normal"){ randomVec <- rnorm(size, mean = as.numeric(input$Mean), sd = as.numeric(input$SD)) } else{ randomVec <- rexp(size, rate = 1/as.numeric(input$Lambda)) } hist(randomVec, col = "light blue") }) } shinyApp(ui, server)
TYSM !!!!
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
Great tutorial! I did really helped me to understand Shiny. Thanks!!!
Can someone help me with this error when I deploy my app: Error: Unhandled Exception: Child Task 704112906 failed: Error parsing manifest: Unable to determine package source for Bioconductor package: Repository must be specified -_-
can i have my own domain for my shiny apps?
Yes. Shiny.rstudio allows you to host a website on their server. Look into it on their site
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 <- renderPlot({ distType <- input$Distribution size <- input$sampleSize if(distType == "Normal"){ randomVec <- rnorm(size, mean = as.numeric(input$mean), sd = as.numeric(input$sd)) } else{ randomVec <- rexp(size, rate = 1/as.numeric(input$Lamda)) } hist(randomVec, col = "blue") } ) } )
Thanks Daniel!
U are the man Daniel
Thank you for saving my time :)
Thank you very much !! I really appreciate your efforts.
You're awesome!
Hey how to do sentiment analysis of any excel file using shiny.please help!
Nice tutorial, thank you!
Good introduction to Shiny. Thanks for this!
shiny apps changed to rsconnect
Ehsan! Well done!
Muchas gracias! me ha resultado muy práctico, saludos.-
Actually I got error = could not find function "siderbarPanel"
be sure you named it well and saved it after renaming it
Hi sir... I hosted a shiny application in Ubuntu Shiny server and it's working fine in that machine. But when I wanted to access it from different machine I'm getting error 'site can't be reached'. It will be great help if you help me in this. Thanks
video cursor blocking important code
Thank you for your video. It helps me a lot
Is it possible to only draw a histogram or can we make ggplots????
what are the overcharge fees if you go over your allowed hours? for a paid service.
Can you please explain, How to uploaded data every time when we run the app??
Thanks ehsan for you excellent tutorial.
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 !!!!
Thanks, very useful tutorial.
Please help or give me your contact or email I need to submit my project.please help
Hi Rauf, Please send me the error you are getting via email please: my email is jahanpour.ehsan@gmail.com. Also, have you tried deploying through Rstudio Connect? Connect has made the shiny app development much simpler now: www.rstudio.com/products/connect/
I have downloaded devtools now when I download devtool::install_github('rstudio/shinyapps') I am getting installation failed.
metoo
ERROR: argument "ui" is missing, with no default, not sure what i did wrong
didnt set a path
@@karansawant7986 how do you set a path?
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 :)
I have this ERROR: argument "ui" is missing, with no default :(
dulce bick do you have your codes on a github?
I solved, don´t problem..
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?
I need the solution to this problem! Please!
in specific?
Hi just wanted to check if we deploy the shiny app on our own server, is that a problem. any legal issue pertaining to that. can we still enjoy the shiny package in r when hosting it on our server without shiny server.
Ayush, I think you can deploy shiny app on your own server, but your server should always be running the shiny application and listen to the request on that server all the time.
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!
ERROR:object 'size' not found, how to resolve this error?
Thanks a lot, man!
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
hey.. facing the same issue. did you figure it out?
@@babccn same
Hi please explain how you mixed the ui and server?
He interchanged the Codes, that is why I have been receiving an error from y side.
Very Nice Explanation..
Good tutorial to start with Shiny directly!
Hi ehsan ! how can I connect php and rstudio ,, i actually want to display my rstudio graphs and data on my website that i have created using local server xampp
Tahira, I hope this was not too late :) I have not connected PHP to Rshiny application. However, if you are only looking for a way to visualize data in your own website, I Would recommend using APIs. Leaflet, plotly and other JS tools gives you the option
Hi ehsan, can provide us some example
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
can i ask you how to connect php in rstudio?
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.
I suggest you update this video. The use of shinyapps package has been depricated. shiny.rstudio.com/articles/shinyapps.html
Thank you Somide, I will go ahead and review the video.
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.
Thanks for the heads up!
Thanks Rohit. I will go ahead and review the tutorial
I must add, Ehsan thank you for putting this tutorial together. It takes a lot of effort and time so **really** appreciate it.
Im still confused on how to fix it
Can you explain how he mixed it?