Learn R Programming

shiny.info (version 0.2.0)

render_session_info: Server render function for rendering informations about user session (app URL, username and pixel ratio)

Description

Server render function for rendering informations about user session (app URL, username and pixel ratio)

Usage

render_session_info()

Arguments

Value

Shiny render function to be saved as an element of output.

Details

Use it with info_value UI function. If you want to use it with toggle_info(), you have to add outputOptions(output, [session info id], suspendWhenHidden = FALSE) to force rendering when the value is hidden.

Examples

Run this code
# NOT RUN {
if(interactive()){
library(shiny)
library(shiny.info)

ui <- fluidPage(
   info_value("session_info")
)

server <- function(input, output, session) {
  outputsession_info <- render_session_info()
  # next line is required to work with toggle_info()
  outputOptions(output, "session_info", suspendWhenHidden = FALSE)
}
}
# }

Run the code above in your browser using DataLab