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
You should have a screen like this
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
In my experience, if the file path contains special characters (even scandinavian letters) this error occurs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With