Open ekmcintyre opened 4 years ago
Hi @ekmcintyre - I have to fix the instructions on this, so apologies for any misdirection, but yo need only submit the .Rmd file and not an .html file for this assignment.
You won't be able to knit Shiny apps to .html - the only way to share them is as source code in a .Rmd file or a live dashboard on the web.
To fix your issue, try opening a new .Rmd file and copy/paste your script into it. Let me know if this works for you!
What about the error message?
_Error in findTestsDir(appDir, quiet = FALSE) : tests/ directory doesn't exist Calls: -> findTestsDir Execution halted
Exited with status 1._
I was trying to run tests in order to see the Shiny app and make sure I wrote my code correctly. At the moment I don't have any visual under my renderPlot code for the actual graph.
Have you copy/pasted your code into a new .Rmd file? If it then allows you to "Run App", you can preview it that way rather than any testing. Please let me know.
I checked my graph in another .rmd file and it looks okay. However, when I tried to write my code in a Shiny file and "Run App" it only shows the interactive, team selection box. There is no graph.
Retried it in the Shiny app and got it to work.
Hooray! Glad you got it working. R is strange to us humans sometimes but rarely does something it's not supposed to do!
For some reason my .rmd file isn't providing the option to knit the file to an .html and the 'Run App' button isn't available either. I can only run the data chunks (with no errors), but no visual output is created after the renderPlot() chunk.
I selected 'Run Documents' and then 'Run Tests' and downloaded some updates to Shiny. Now there is an error message:
_Error in findTestsDir(appDir, quiet = FALSE) : tests/ directory doesn't exist Calls: -> findTestsDir
Execution halted
Exited with status 1._