DS4PS / cpp-526-fall-2020

Course shell for CPP 526 Foundations of Data Science I for Fall 2020
http://ds4ps.org/cpp-526-fall-2020/
MIT License
3 stars 1 forks source link

No 'Knit' or 'Run App' options; Error in findTestsDir( #19

Open ekmcintyre opened 4 years ago

ekmcintyre commented 4 years ago

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._

image image

jamisoncrawford commented 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!

ekmcintyre commented 4 years ago

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.

jamisoncrawford commented 4 years ago

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.

ekmcintyre commented 4 years ago

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.

image

ekmcintyre commented 4 years ago

Retried it in the Shiny app and got it to work.

image

jamisoncrawford commented 4 years ago

Hooray! Glad you got it working. R is strange to us humans sometimes but rarely does something it's not supposed to do!