when publishing shiny code rstudio (windows), in account name field '[object object]' rather account name leading following error message:
error: account named '[object object]' not exist i tried several things nothing seems work. note i've recent versions of shinyapps , tried things such generate new tokens , etc.
thanks,
here code using:
ui.r
library(shiny) library(shinyapps) ui<- fluidpage( titlepanel("bidding centre"), #sidebar slider input number of bins sidebarlayout( sidebarpanel( sliderinput(inputid = "bins", label = "number of bins:", min = 1, max = 50, value = 30), textinput(inputid = 'title', label = 'write title', value = 'try me!')), # show plot of generated distribution mainpanel( plotoutput("distplot") ) ) ) server.r
library(shiny) shinyserver(function(input, output) { output$distplot <- renderplot({ # generate bins based on input$bins ui.r x <- faithful[, 2] bins <- seq(min(x), max(x), length.out = input$bins + 1) # draw histogram specified number of bins hist(x, breaks = bins, col = 'darkgray', border = 'white',main=input$title) }) })
i encountered same issue. click run app, 'publish', received same error message:
error: account named '[object object]' not exist i able fix running command manually:
shinyapps::deployapp('~/path/to/app') hope helps!
Comments
Post a Comment