Deploying Finished App in Shiny Apps - Error

1,257 views
Skip to first unread message

Tanner Summers

unread,
May 1, 2016, 12:21:43 PM5/1/16
to ShinyApps Users
Hello,

I have completed my UI.R and Server.R code in RStudio. My code successfully runs and I am not trying to deploy my app on Shiny Apps (https://www.shinyapps.io). I have completed the below...

1. I have installed rsconnect package - install.packages('rsconnect')
2. I have authorized account with my token
3. I have saved my UI.R, Server.R, and Data Set for my app in the same folder labeled "TannersAPP"
4. I have set my working directory to that path on my computer - setwd('"C:/Users/Summers/Desktop/TannersAPP")

When I try to deploy the app, I receive the error message below.

Please someone help!! Thank you in advance!

> setwd("C:/Users/Summers/Desktop/TannersAPP")
> getwd()
[1] "C:/Users/Summers/Desktop/TannersAPP"
> rsconnect::setAccountInfo(name='classprojectfirstshinyapptannersummers', token='', secret='')
> getwd()
[1] "C:/Users/Summers/Desktop/TannersAPP"
> library(rsconnect)
Warning message:d
package ‘rsconnect’ was built under R version 3.2.5 
> rsconnect::deployApp('C:/Users/Summers/Desktop/TannersAPP')
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







Tareef Kawaf

unread,
May 2, 2016, 9:43:54 AM5/2/16
to Tanner Summers, ShinyApps Users
I am not sure what is going on.
Two suggestions:

1. Run list.files() to confirm that you see the ui.R and server.R files there.
2. Run rsconnect::deployApp() without fully qualifying the path. 



--
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/a92353eb-03ca-4a4a-a03f-51211c5a9ea6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages