Skip to content

Integrating RStudio Connect with Version Control#

Overview#

RStudio Connect can be used to deploy projects that are version controlled in Git repositories.

Push-button Deployment#

During push-button publishing, the RStudio IDE will automatically create, upload, and activate a bundle with your application code and a list of dependencies, then your application will be published to RStudio Connect.

You can publish the following directly from the RStudio IDE to RStudio Connect:

  • Shiny Apps
  • R Markdown reports
  • Plumber APIs

Additionally, you can publish Jupyter Notebooks to RStudio Connect using a notebook extension.

Who is this useful for?

This publishing method is useful for data scientists who want to publish content directly from development into production.

If you are interested in push-button deployments, please review our Publishing documentation.

Additional resources

How-to Guides

We have step-by-step how-to guides that may be a great place to get you started! Please see our How To Guides for Data Scientists.

Deploying from Git#

This functionality is available in RStudio Connect 1.7.6 and newer versions.

You can configure individual applications within RStudio Connect to deploy from Git repositories and update at regular intervals.

Who is this useful for?

This publishing method is designed to allow data scientists to publish directly from Git repositories to Connect, and have that content get updated at regular intervals without the need for external CI/CD systems like Jenkins or Travis CI.

Additional resources

Please review the following resources about publishing git-backed content to RStudio Connect:

User documentation on publishing Git-backed content to RStudio Connect.

Admin documentation on details for Git-backed content in RStudio Connect.

Programmatic Deployment#

This functionality is available in RStudio Connect 1.7.0 and newer versions.

You can configure individual applications outside of RStudio Connect with CI/CD systems (e.g., Jenkins, Bamboo) to publish to RStudio Connect on an ongoing basis.

Who is this useful for?

This publishing method is useful for administrators who want to configure CI/CD pipelines so that data scientists can work on their applications within version-control systems (e.g., Git) while integrating the deployment process into their existing automation and approval workflows.

Additional resources

The RStudio Connect Server API Cookbook explains how to use Connect Server APIs to create content in RStudio Connect and deploy code associated with that content.