View source: R/connectAnalytics.R
Run the Shiny Application
1 2 3 4 5 6 7 8 9 10 11 | connectAnalytics(
...,
host = Sys.getenv("CONNECT_SERVER"),
api_key = Sys.getenv("CONNECT_API_KEY"),
user = NULL,
switch_user = TRUE,
favicon = NULL,
title = "connectAnalytics",
window_title = NULL,
header_width = 230
)
|
... |
additional options to be passed to 'golem_opts' |
host |
the host server for the RStudio Connect to be connected to. Defaults to the environment variable "CONNECT_SERVER" |
api_key |
a valid RStudio Connect API key. Defaults to the environment variable "CONNECT_API_KEY" |
user |
the desired user to log in as. If NULL (default) it will default to the session$user (recommended) |
switch_user |
logical; if TRUE a button appears in the navbar that will allow users to switch which connect user analytics data they are looking at. This could be useful if your company wants to allow users to see how others are performing. |
favicon |
path to a favicon icon to be used for your application |
title |
the title of the application to be shown in the dashboard header |
window_title |
the title of the application to be shown in the browser tab. If NULL (default) the title value will be used |
header_width |
Set the width of the header for the shiny application. This is useful in case the title specified is too long for the default width |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.