rdeploymentservershinypublish

Shiny App Error: /v1/applications/ 400 - Validation Error Execution halted


Hi I'm having a million problems trying to publish my app to shiny.io.

Firstly, I have Rtools 3.2 installed in my computer and set to the Path, but it is not recognized in the registry. Nevermind, this code should fix it:

install.packages("installr")
library(installr)
install.Rtools(choose_version = FALSE, check = TRUE, use_GUI = TRUE,
page_with_download_url = "http://cran.r-project.org/bin/windows/Rtools/, keep_install_file=TRUE")
install.packages("devtools")
library(devtools)
devtools::install_github('rstudio/shinyapps')

Next, to deploy my app to my shiny.io account:

library(shinyapps)
shinyapps::setAccountInfo(name='xxxx', token='xxxxxxxxxx', secret='xxxxxxxx')

Then my app starts running in a browser, and I click publish to my shiny account. However, when the app is being deployed, it shows the following error:

Preparing to deploy application...Error: /v1/applications/ 400 - Validation Error
Execution halted

Any ideas what the problems may be? Thank you.


Solution

  • I had the same error returned. In my case the problem was the name of the app itself. Deployed apps must have names at least 4 characters long with no spaces.