Skip to contents

This is a helper function for userInfo. When used without a shiny session object calls to this function is made without any arguments. If redefining contexts is needed, please use userInfo instead.

Usage

getUserFullName(shinySession = NULL)

Arguments

shinySession

Shiny session object (list, NULL by default). Must be provided when the source of user attributes is either the shiny app url or an external authentication provider. By default this will apply to the 'TEST', 'QA' and 'PRODUCTION' contexts in which case the shiny session object must be provided.

Value

String full name

Examples

# \donttest{
# Requires a valid shiny session object
try(getUserFullName())
#> System has no defined instance. Configuration as provided by
#>             'rapbaseConfig.yml' will be used as source for user data.
#> [1] "Tore Tester"
try(getUserFullName(shinySessionObject))
#> System has no defined instance. Configuration as provided by
#>             'rapbaseConfig.yml' will be used as source for user data.
#> [1] "Tore Tester"
# }