Report on RStudio Connect Usage
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
email-preview.png fix email again and smaller leaderboard Dec 7, 2018
helpers.R Error handling for missing content. Feb 12, 2019
manifest.json initial commit Dec 7, 2018
styles.css initial commit Dec 7, 2018

RStudio Connect Usage Report

This R Markdown report can be published as-is to your RStudio Connect server or used as a starting point for your own analysis. You can schedule the report and distribute it via email (the email will include inline graphics!)

Sample Report:

The report is generated using the RStudio Connect Server API. The helpers.R file contains example code for querying the various API endpoints. The API and data collection are both available as of RStudio Connect 1.7.0. The API contains data to help answer questions like:

  • What content is most visited?
  • Who is visiting my content?
  • What reports are most common?
  • Has viewership increased over time?
  • Did my CEO actually visit this app?

A data science team's time is precious, this data will help you focus and justify your efforts.

The report uses the environment variables RSTUDIO_CONNECT_SERVER and RSTUDIO_CONNECT_API_KEY to collect the data. To limit the results to a single publisher, use a publisher API key.

Common Questions

  • Could this be a shiny app instead of a report? Of course! Let us know what you come up with.
  • Can I use the API from another language besides R? Absolutely, the API includes a spec to get you started.
  • Will you provide an R client for accessing the API? Email if this sounds interesting.
  • What is the manifest.json file? This file aids in programmatic deployments, a new RStudio Connect feature.

Learn more about programmatic deployments, calling the server API, and custom emails here.