Learn R Programming

rsconnect

rsconnect makes it easy to publish your Shiny apps, RMarkdown and Quarto documents, and Plumber APIs* to Posit Connect, Posit Connect Cloud, and shinyapps.io from R.

(If you’re looking for the Python equivalent, try rsconnect-python.)

Installation

You can install the released version of rsconnect from CRAN with:

install.packages("rsconnect")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("rstudio/rsconnect")

Setup

To use rsconnect, you first need to teach it about the server you want to publish to. If you use the RStudio IDE, the easiest way to get set up is to use the publishing dialog, which you can find by clicking the “Tools” menu, then selecting “Global options”, then clicking “Publishing”. Click “Connect” to add new servers.

You can also connect from any R session by running a little code:

  • For Posit Conect Cloud, call connectCloudUser() to authenticate through the browser.

  • For Posit Connect, first use addServer() to register your server with rsconnect, then call either connectUser() or connectApiUser(). connectUser() is a bit simpler if you’re in an interactive session; connectApiUser() works anywhere but requires a you to copy and paste an API key from your user profile.

  • For shinyapps.io, go to your tokens page and click “Add Token”, then follow the instructions to copy and paste the appropriate call to setAccountInfo(). Learn more in the Getting Started Guide.

Now that you’re setup you can use deployApp(), deployDoc(), and friends to publish your apps, documentations, APIs and more.

Copy Link

Version

Install

install.packages('rsconnect')

Monthly Downloads

71,522

Version

1.10.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Aron Atkins

Last Published

July 8th, 2026

Functions in rsconnect (1.10.1)

deployApp

Deploy an Application
makeLinterMessage

Construct a Linter Message
linter

Create a Linter
removeAuthorizedUser

Remove authorized user from an application
purgeApp

Purge an Application
resendInvitation

Resend invitation for invited users of an application
rsconnectOptions

Package Options
rsconnectConfigDir

rsconnect Configuration Directory
listAccountEnvVars

Maintain environment variables across multiple applications
restartApp

Restart an Application
showUsage

Show Application Usage
rpubsUpload

Upload a file to RPubs
showProperties

Show Application property
oldApplicationConfigDir

Old Application Config Directory
rsconnect-package

rsconnect: Deploy Docs, Apps, and APIs to 'Posit Connect', 'shinyapps.io', and 'RPubs'
generateAppName

Generate Application Name
showLogs

Application Logs
terminateApp

Terminate an Application
showMetrics

Show Application Metrics
setAccountInfo

Register account on shinyapps.io
lint

Lint a Project
servers

Server metadata
writeManifest

Create a manifest.json
listDeploymentFiles

Gather files to be bundled with an app
listBundleFiles

List Files to be Bundled
rsconnectPackages

Using Packages with rsconnect
taskLog

Show task log
rsconnectProxies

HTTP Proxy Configuration
syncAppMetadata

Update deployment records
tasks

List Tasks
setProperty

Set Application property
showInvited

List invited users for an application
deployTFModel

Deploy a TensorFlow saved model
showUsers

List authorized users for an application
unsetProperty

Unset Application property
connectApiUser

Register account on Posit Connect
addServer

Server management
configureApp

Configure an Application
applicationConfigDir

Application Configuration Directory
accounts

Account Management Functions
accountUsage

Show Account Usage
addAuthorizedUser

Add authorized user to application
addLinter

Add a Linter
appDependencies

Detect application dependencies
forgetDeployment

Forget Application Deployment
applications

List Deployed Applications
connectSPCSUser

Register account on Posit Connect in Snowpark Container Services
connectCloudUser

Register account on Posit Connect Cloud
connectCloudClientCredentials

Register a Posit Connect Cloud account using OAuth client credentials
deployments

List Application Deployments
deployAPI

Deploy a Plumber API
deploySite

Deploy a website
deployDoc

Deploy a single document