How do I deploy a shinydashboard to shinyapps.io?

967 views
Skip to first unread message

Alexander Li

unread,
Dec 14, 2015, 10:51:08 AM12/14/15
to ShinyApps Users
I get an HTTP 400 error when I try to deploy a shinydashboard to shinyapps.io using deployApp() from the rsconnect package. Is it possible at the moment to upload a shinydashboard to the shinyapps.io server? I couldn't find anything on their website about shinydashboard. 

Tareef Kawaf

unread,
Dec 14, 2015, 11:09:04 AM12/14/15
to Alexander Li, ShinyApps Users
Hi Alexander,
You can definitely deploy a shinydashboard to shinyapps.io.  What error are you seeing?
-Tareef

On Mon, Dec 14, 2015 at 10:51 AM, Alexander Li <alexande...@gmail.com> wrote:
I get an HTTP 400 error when I try to deploy a shinydashboard to shinyapps.io using deployApp() from the rsconnect package. Is it possible at the moment to upload a shinydashboard to the shinyapps.io server? I couldn't find anything on their website about shinydashboard. 

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/e3324b84-0fa4-450f-8e05-bd2baf1b5d66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Buijs

unread,
Dec 14, 2015, 11:23:50 AM12/14/15
to ShinyApps Users
Are you seeing the same version issue I am? (See issue posted yesterday)

Preparing to deploy application...DONE
Uploading bundle for application: 73266...DONE
Deploying bundle: 329748 for application: 73266 ...
Waiting for task: 114951222
  error: Parsing manifest
################################ Begin Task Log ################################ 
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 114951223 failed: Error parsing manifest: Maximum supported R version is: 3.2.2
Execution halted

Tareef Kawaf

unread,
Dec 14, 2015, 11:36:49 AM12/14/15
to Daniel Buijs, ShinyApps Users
Yes.  This is a different problem.  We haven't yet upgraded shinyapps.io to support R  3.2.3,if you can downgrade to 3.2.2 you should be able to get through it. 
--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/f3fc5004-0abd-418c-af04-ea691519a014%40googlegroups.com.

Alexander Li

unread,
Dec 14, 2015, 12:44:27 PM12/14/15
to Tareef Kawaf, Daniel Buijs, ShinyApps Users
I initially received this error:

Error in lint(appDir, appFiles, appPrimaryDoc) : 
  Cancelling deployment: invalid project layout.
The project should have one of the following layouts:
1. 'shiny.R' and 'ui.R' in the application base directory,
2. 'shiny.R' and 'www/index.html' in the application base directory,
3. 'app.R' or a single-file Shiny .R file,
4. An R Markdown (.Rmd) document,
5. A static HTML (.html) document.

I had my code in a single rscript and I defined server without the shinyServer function. 

The HTTP 400 error occurred after I tried separating the script into ui.R and server.R files. The error looked like this:

Preparing to deploy application...
Error: HTTP 400
Validation Error


--
You received this message because you are subscribed to a topic in the Google Groups "ShinyApps Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shinyapps-users/8rvdibYAjUU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shinyapps-use...@googlegroups.com.

To post to this group, send email to shinyap...@googlegroups.com.

Andy Kipp

unread,
Dec 14, 2015, 1:54:25 PM12/14/15
to Alexander Li, Tareef Kawaf, Daniel Buijs, ShinyApps Users
Alexander,

You should make sure there is no spaces in your application directory name, and that its at least 4 characters in length.

Hope that helps
-Andy

Alexander Li

unread,
Dec 14, 2015, 2:33:30 PM12/14/15
to Andy Kipp, Tareef Kawaf, Daniel Buijs, ShinyApps Users
Thanks, I just edited the directory names. Unfortunately, it didn't solve the issue... I'm working in RStudio on this so I was wondering, should it show a Run App button at the top right? The app works fine using the shinyApp() function though. 

Andy Kipp

unread,
Dec 22, 2015, 12:56:21 PM12/22/15
to Alexander Li, Tareef Kawaf, Daniel Buijs, ShinyApps Users
What is the name of the directory you are using?
Reply all
Reply to author
Forward
0 new messages