Learn R Programming

shinyga (version 0.1.2.9001)

renderAuthDropdownRow: renderAuthDropdownRow - creates a row of GA authentication menus

Description

Use with authDropdownRow Creates a row of select boxes for GA Account, Webproperty and View. id needed for GA fetches is then available in input$view.id

Usage

renderAuthDropdownRow(ga.table, input, session, account.id = "accounts", web.prop.id = "web.prop", view.id = "view")

Arguments

ga.table
A table of GA profiles from getAndMergeGAAccounts().
input
The shiny input object.
session
The shiny session object.
account.id
The shiny id for accounts. Then available at input$.
web.prop.id
The shiny id for web properties. Then available at input$.
view.id
The shiny id for views. Then available at input$.

Value

Nothing.

See Also

Shortcut using doAuthMacro.

Other shiny macro functions: authDropdownRow; doSegmentMacro; metricSelect

Examples

Run this code
## Not run: 
#  ## server.r
# shinyServer(function(input, output, session) {
# 
#     renderAuthDropdownRow(ga.table = ShinyMakeGAProfileTable(),
#                           input = input,
#                           session = session)
# 
# }
# 
#  ## ui.r
# 
#  library(shinydashboard)
#  dashboardBody(authDropdownRow(),
#                metricSelect())
# 
#  ## End(Not run)

Run the code above in your browser using DataLab