Skip to content

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

Open

Description

@benporter

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

Activity

  1. daattali commented on Apr 5, 2016

    @daattali
    Owner

    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

  2. samuel-bohman commented on May 15, 2017

    @samuel-bohman

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

  3. daattali commented on May 15, 2017

    @daattali
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions