79297138

Date: 2024-12-20 11:56:04
Score: 1
Natty:
Report link

To combine a Shinylive Shiny app right into a pkgdown article to your GitHub Pages site, follow those steps:

Prepare Your Shiny App: Ensure your Shiny app is efficaciously dependent with ui and server capabilities within the R/ folder and an app.R report within the root listing.

Deploy with Shinylive: Use the r-shinylive GitHub Action to installation your app. You can set this up with the aid of running:

usethis::use_github_action(url = "https://github.Com/posit-dev/r-shinylive/blob/moves-v1/examples/installation-app.Yaml")

Embed in pkgdown Article: In your pkgdown article (e.G., articles/my_article.Html), embed the Shinylive app the use of an iframe. Here’s an example of a way to do this:

Build and Serve: After making those adjustments, rebuild your pkgdown site using pkgdown::build_site() and push the changes to GitHub.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28866571