Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error for publishing the app in Rstudio

Tags:

shiny

I want to make a plot in Rstudio and share it with others. I have already made an account in shiny website but when I want to publish the plot I have an error could not find file to deploy. Any suggestions?

 library(shiny)
 library(plotly)
 ui <- fluidPage(
     plotlyOutput("p")
 )
server <- function(input, output, ...) {

     output$p <- renderPlotly({
         p <- plotly_build(qplot(1:10))
         p$elementId <- NULL
         p
     })

 }
shinyApp(ui, server)

enter image description here enter image description here

like image 436
shoo Avatar asked Sep 15 '25 23:09

shoo


2 Answers

You should have a screen like this

enter image description here

I guess there's something wrong with your working directory or something like that. You could always do it by hand as detailed here, with rsconnect https://shiny.rstudio.com/articles/shinyapps.html

like image 106
Chris Beeley Avatar answered Sep 17 '25 20:09

Chris Beeley


In my experience, if the file path contains special characters (even scandinavian letters) this error occurs.

like image 27
oskjerv Avatar answered Sep 17 '25 18:09

oskjerv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!