statnet / statnetWeb

A graphical user interface for network modeling with the 'statnet' software
GNU General Public License v3.0
29 stars 17 forks source link

Package structure revision needed to deploy #69

Closed martinamorris closed 5 years ago

martinamorris commented 5 years ago

Shiny app package structure requirements have changed since this was first written. When I try to deploy to the shinyApps.io server I get the following error:

deployApp()

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) or PDF (.pdf) document.
  6. 'plumber.R' API description .R file
  7. 'entrypoint.R' plumber startup script
  8. A tensorflow saved model
skhan890 commented 5 years ago

I think I know what's going on here. can you setwd("inst/shiny") before running the deployment?

martinamorris commented 5 years ago

Thx, solved one problem, led to the next:

> deployApp("statnetWeb", 
+           appName = "statnetWeb", 
+           account = "statnet")
Error in deployApp("statnetWeb", appName = "statnetWeb", account = "statnet") : 
  F:\GitHub\StatnetOrganization\statnetWeb\inst\shiny\statnetWeb does not exist

The only things in the inst\shiny folder are global.R server.R and ui.R, and a folder www

What is this expecting?

skhan890 commented 5 years ago

Ah... I think whoever made this repo did not push up the "shinyapps" folder, as shown in the repo below: https://github.com/statnet/statnetWeb/blob/6d0c3898133a1234684e8471ed214809699337dc/.gitignore#L18

Do you have the login information for the shinyapps for statnet? I can investigate this further there. I have a feeling that the shinyapps folder might be on there as part of a zipped folder.

skhan890 commented 5 years ago

Oh on second thought, this might just be a directory issue. Can you create a new folder called "statnetWeb" from inside of inst/shiny, and THEN deploy it (still from the getwd of "inst/shiny").

The file structure would then look like this: statnetWeb

martinamorris commented 5 years ago

trying this now. have pushed all the changes

... seems to be working ;)