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

Using shiny.router with separate ui and server files #80

Open
em-dataIntegrityEnthusiast opened this issue Mar 5, 2021 · 1 comment

Comments

@em-dataIntegrityEnthusiast

Is it possible to use shiny.router with separate ui and server files? I could not figure out how you would get the scoping right on that. Defining the router object in UI would make it not accessible in server and global.R did not seem to help that either.

@rstammer
Copy link
Contributor

rstammer commented Mar 5, 2021

Yes, in general that is possible! Here is an older example that follows a little bit your idea, if I got it right. The example has multiple uis in the uis folder, a common router object in routes.R. Please note that the example code referenced above is quite outdated and would need some dev love, but the idea should work nevertheless.

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

2 participants