Tychobra / polished_example_apps

Example Apps for Polished
33 stars 19 forks source link

Flexdashboard #16

Closed zjmarg closed 2 years ago

zjmarg commented 3 years ago

I am struggling to adapt the code provided to work with my flexdashboard. Currently, my flexdashboard is an interactive R markdown document that is being hosted by shinyapps.io and I have registered the dashboard as a "Shiny app" on the polished website. However, I am unsure of how to actually change my markdown document to utilize polished. Can you provide clarity on this?

merlinoa commented 3 years ago

You will need to create a shiny app with this file and folder structure: https://github.com/Tychobra/polished_example_apps/tree/master/05_flex_dashboard

Place the html document produced by your flexdashboard's ".Rmd" in the "www/" folder.

You can test running the app locally by running shiny::runApp(). If polished is configured correctly, the app will open to the polished sign in page.

zjmarg commented 3 years ago

I see that's helpful! Do you know how to retrieve the html document produced by the flexdashboard? I haven't done that yet. This is a great product and I appreciate your help.

merlinoa commented 3 years ago

Thanks! The html document is created by the Rmd when you knit the Rmd. If you are using Rstudio, you can click this button to knit the Rmd:

Screen Shot 2021-01-04 at 5 12 29 PM

Once the html document is created, you can just copy and paste it into the "www" folder.

merlinoa commented 3 years ago

This issue is related to #17. @zjmarg was attempting to use runtime shiny with polished. Unfortunately polished does not currently support runtime shiny.

merlinoa commented 2 years ago

Polished now supports runtime shiny in Rmarkdown documents! Example app here: https://github.com/Tychobra/polished_example_apps/tree/master/09_rmarkdown

zjmarg commented 2 years ago

Awesome thank you!

On Sun, Dec 19, 2021, 3:48 PM Andy Merlino @.***> wrote:

Polished now supports runtime shiny in Rmarkdown documents! Example app here: https://github.com/Tychobra/polished_example_apps/tree/master/09_rmarkdown

— Reply to this email directly, view it on GitHub https://github.com/Tychobra/polished_example_apps/issues/16#issuecomment-997458889, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKT6KFFIQWKWUYQ5WSZQLLURZAKNANCNFSM4VTQLU7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>