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

request: ui.R and server.R example #16

Open
benporter opened this issue Apr 3, 2016 · 3 comments
Open

request: ui.R and server.R example #16

benporter opened this issue Apr 3, 2016 · 3 comments

Comments

@benporter
Copy link

please provide an example that uses the ui.R and server.R approach rather than the single file app.R approach.

@daattali
Copy link
Owner

daattali commented Apr 5, 2016

For now, I think the best (and only) is to just have that formInfo list variable available to both ui and server. You could achieve this by defining it in global.R, or by putting it in some helper file and source-ing that file from both ui and server

@samuel-bohman
Copy link

Defining the questions and formInfo lists in server.R seems to be working just fine for me. No need for a global.R.

@daattali
Copy link
Owner

Yes you can define the lists in server, but the ui also needs it, so it needs to be defined in both files

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