Watts-College / paf-513-template

https://watts-college.github.io/paf-513-template/
MIT License
0 stars 0 forks source link

No windows popped up when running codes. #13

Open dongdongkim99 opened 6 months ago

dongdongkim99 commented 6 months ago

@JasonSills

Sorry for asking on Sunday. I tried using Run Document on the Lab 4 template. There are no errors, but it just outputs '' like below and doesn't open a new window. image

I already have 'flexdashboard' and 'shiny' installed. I also tried updating following krangaraju's question post, but the issue remains unresolved. Is there something I'm missing? Please help~

JasonSills commented 6 months ago

@dongdongkim99 Here are a few things to try: Update all packages. Save your RMD to a local folder then click "Run Document". Make sure you are clicking "Run Document", not just the code chunks or "Run". If these do not work Stack Overflow posts are indicating uninstalling and reinstalling both R and RStudio. R and RStudio and all RMD files need to be on a local file, not a network file.

dongdongkim99 commented 6 months ago

@JasonSills Thank you. It worked! "Run document" was the key. But I don't know why it's not working when clicking run at the code chunk. It made no problems in the previous lab.

JasonSills commented 6 months ago

@dongdongkim99 It's the nature of Shiny. Shiny is building an interactive dashboard. In this case the entire document is needed to build the dashboard. When we run just one chunk we are executing only on that portion. In a Shiny dashboard we cannot have a part, we must have the whole.