Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgdown integration? #142

Open
capellett opened this issue Dec 11, 2024 · 3 comments
Open

pkgdown integration? #142

capellett opened this issue Dec 11, 2024 · 3 comments

Comments

@capellett
Copy link

Sorry if this is obvious, but how would I incorporate a shinylive app into a pkgdown website on GitHub pages?

I'm trying to give non-coders easy access to data in this repo: https://capellett.github.io/scpopulation/index.html

I've built the app ui and server functions in the R/ folder, and I have an app.R file in the root folder, and a GitHub action:

usethis::use_github_action( url="https://github.com/posit-dev/r-shinylive/blob/actions-v1/examples/deploy-app.yaml")

...but, is there a way to set up the app as one of the "articles" in package down?

@gadenbuie
Copy link
Contributor

Would you mind opening PR in your repo with the code you have so far? This feels very much within the realm of possibility, but I haven't tried it myself yet and can't give you great advice. If I have time to look into it, I might as well poke around with your example 😉

@capellett
Copy link
Author

All the code I have so far is in the main branch. Except for the use_github_action() command above, I ran that in the console.

Thanks for responding, I hope you have a moment to take a look. . . I hope I'm not being dense about this Pull Request Request, since everything I have is in the main, I'm not sure how to create a proper pull request. I created an issue, in my package, if that helps at all.

Thanks again

@georgestagg
Copy link
Collaborator

You might also want to try out the roxy.shinylive package: https://insightsengineering.github.io/roxy.shinylive/

AFAICT this works by encoding the app into a shinylive.io share string, and so I don't know how well it would work for large apps or apps that use custom packages or data. You might have to load data using download.file(...) where ... is a raw GitHub URL of the form https://raw.githubusercontent.com/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants