$30 off During Our Annual Pro Sale. View Details »

RStudio Connect 1.9.0 - Intro to connectwidgets

kellobri
August 18, 2021

RStudio Connect 1.9.0 - Intro to connectwidgets

connectwidgets is an RStudio-maintained R package that can be used to query a Connect server for a subset of your existing content items, then organize them within htmlwidget components in an R Markdown document or Shiny application.

https://rstudio.github.io/connectwidgets/
https://blog.rstudio.com/2021/07/29/rstudio-connect-1-9-0/

kellobri

August 18, 2021
Tweet

More Decks by kellobri

Other Decks in Technology

Transcript

  1. RStudio Connect 1.9.0
    Introducing connectwidgets

    View Slide

  2. 📣 `library(connectwidgets)`
    Code-first Content Curation Tools
    for RStudio Connect
    The Main Event
    h/t to the excellent Edgar Ruiz for hex logo design!

    View Slide

  3. RStudio Connect: Content Publisher Actions
    1
    Deploym
    ent
    Deploy
    R
    or Python
    content via
    a
    variety
    of
    m
    ethods: push-button, CLI, git-backed, or
    Server API.
    2
    Execution
    Publish
    static
    content, or source
    code-backed
    item
    s. Set up
    docum
    ents
    to
    run
    on
    a
    schedule, control resource
    allocation
    to
    interactive
    applications
    and
    APIs.
    3
    M
    anagem
    ent
    Control the
    m
    etadata
    associated
    w
    ith
    a
    content
    item
    . Publish
    new
    versions
    in
    place, roll
    forw
    ard/backw
    ard. Access
    scheduled
    report
    history. Add
    organizational tags. Track
    the
    usage
    m
    etrics.
    4
    Distribution
    Add
    view
    ers
    and
    collaborators. Set a
    vanity
    URL. Schedule
    a
    custom
    em
    ail to
    be
    set on
    success
    criteria.

    View Slide

  4. View Slide

  5. View Slide

  6. Customer
    Perspectives
    Create an RStudio Connect “App Store” or Content Gallery
    ● “We want a custom landing page for all our business stakeholders”
    ● “The content dashboard is overwhelming and content discovery is hard”
    ● “It would be amazing if Connect could automatically generate a gallery”
    We’ve created lots of pieces of related
    content, how do we share it with viewers?
    Giving them pages of links is tiresome, and the
    default Connect content dashboard isn’t
    polished enough to share.

    View Slide

  7. Self-Service Content Curation: connectwidgets
    An R package that provides htmlwidgets and helper functions to organize
    and curate your RStudio Connect content within an R Markdown document
    or Shiny application.
    Design Principles:
    ● Code-based
    ● Built using existing, familiar Connect content types
    ● Polished, Presentable Defaults
    ● No CSS knowledge required
    ● No RStudio Connect Server API knowledge required
    ● Customizable, Easy to Brand

    View Slide

  8. How it works
    Publish & Schedule
    Publish Interactive App
    connect
    widgets
    API Key
    Requires RSC 1.9.0+

    View Slide

  9. Use Cases
    Examples:
    ● A summary/reference page
    for a complex project
    ● A content hub or knowledge
    repository for work belonging
    to a team or objective
    ● A single entrypoint for
    stakeholders
    ● Presentation layer for any
    curated list of notable
    content items
    Example customization of R Markdown template using bootswatch

    View Slide

  10. Supporting Features from 1.8.8
    Streamlined Publishing
    RStudio Connect now automatically provisions Server
    Address (CONNECT_SERVER) and an API Key
    (CONNECT_API_KEY), scoped to the publisher, for
    content runtimes so that items are not published in a
    broken state, i.e. with missing environment variables. 🎉
    ● Enabled by default
    ● Can be overwritten by explicitly setting them in
    the Connect Vars pane
    ● Across all content runtimes (except TensorFlow)
    ● Server configuration settings for disabling
    Request for Access Permissions
    connectwidgets grid preview:
    These supporting features have already been released (RSC 1.8.8)

    View Slide

  11. Reference Links
    Documentation site: https://rstudio.github.io/connectwidgets/
    Blog post announcement: https://blog.rstudio.com/2021/07/29/rstudio-connect-1-9-0/
    RStudio Connect release notes: https://docs.rstudio.com/connect/news/

    View Slide