0

I write a package on github and a shiny app, I want to use shinyapp.io to run it.

But when run command deployApp(), error message shows :

 "The application failed to start (exited with code 1).

  Error in value[[3L]](cond) : there is no package called ‘xxxxxx’
  Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
 Execution halted"

the package is on github but not on CRAN.

E.Coms
  • 11,065
  • 2
  • 23
  • 35

1 Answers1

0

Using the RStudio functionality I got it to work. Initially I had trouble installing the dotaRecord package but once installed the publish button worked fine.

shinyapps publishing

Eli Berkow
  • 2,628
  • 1
  • 12
  • 22
  • it seems good on RStudio after , but on the shinyapp.io it still have the problem of package not find. – Darth Vader Nov 13 '18 at 14:57
  • Not sure what the issue is. I have set it up here https://elib.shinyapps.io/shinyappstest/ using RStudio. – Eli Berkow Nov 14 '18 at 12:51
  • Did it show the last two lines? Document successfully deployed to https://elib.shinyapps.io/shinyappstest/ Deployment completed: https://elib.shinyapps.io/shinyappstest/ – Eli Berkow Nov 14 '18 at 12:53
  • yes, it shows successfully deployed to xxxxx, did you just install my package from github and open the app.R, then click publish? – Darth Vader Nov 15 '18 at 14:11
  • how did u configure the shinyapp.io? just register an account and request a token and secret and input it into Rstudio, then publish the app.R? – Darth Vader Nov 15 '18 at 16:10
  • That is exactly what I did. Is it not working for you? – Eli Berkow Nov 15 '18 at 22:28
  • I downloaded the package from GitHub, ran the app in RStudio to test and then published. I already had a shinyapps.io account set up. – Eli Berkow Nov 16 '18 at 07:05
  • I figure it out, when publish the app, just deploy the app.R file instead of deploy the whole package, then it works! Whatever, thanks! – Darth Vader Nov 16 '18 at 16:27
  • Glad to hear Mr Vader! – Eli Berkow Nov 19 '18 at 07:41