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

50,143

Version

1.11.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Aron Atkins

Last Published

August 25th, 2026

Functions in rsconnect (1.11.0)

connectCloudClientCredentials

Register a Posit Connect Cloud account using OAuth client credentials
connectCloudUser

Register account on Posit Connect Cloud
listBundleFiles

List Files to be Bundled
listAccountEnvVars

Maintain environment variables across multiple applications
lint

Lint a Project
migrateToConnectCloud

Migrate a deployment record to Posit Connect Cloud
makeLinterMessage

Construct a Linter Message
rsconnectOptions

Package Options
listDeploymentFiles

Gather files to be bundled with an app
linter

Create a Linter
oldApplicationConfigDir

Old Application Config Directory
generateAppName

Generate Application Name
resendInvitation

Resend invitation for invited users of an application
restartApp

Restart an Application
showInvited

List invited users for an application
showLogs

Application Logs
rpubsUpload

Upload a file to RPubs
rsconnect-package

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

Update deployment records
servers

Server metadata
showMetrics

Show Application Metrics
showProperties

Show Application property
rsconnectProxies

HTTP Proxy Configuration
rsconnectConfigDir

rsconnect Configuration Directory
setAccountInfo

Register account on shinyapps.io
setProperty

Set Application property
taskLog

Show task log
tasks

List Tasks
rsconnectPackages

Using Packages with rsconnect
terminateApp

Terminate an Application
removeAuthorizedUser

Remove authorized user from an application
showUsage

Show Application Usage
purgeApp

Purge an Application
unsetProperty

Unset Application property
showUsers

List authorized users for an application
writeManifest

Create a manifest.json
configureApp

Configure an Application
addLinter

Add a Linter
accountUsage

Show Account Usage
connectApiUser

Register account on Posit Connect
addAuthorizedUser

Add authorized user to application
appDependencies

Detect application dependencies
accounts

Account Management Functions
addServer

Server management
applicationConfigDir

Application Configuration Directory
applications

List Deployed Applications
deployDoc

Deploy a single document
deployApp

Deploy an Application
deploySite

Deploy a website
deployTFModel

Deploy a TensorFlow saved model
forgetDeployment

Forget Application Deployment
deployments

List Application Deployments
connectSPCSUser

Register account on Posit Connect in Snowpark Container Services
deployAPI

Deploy a Plumber API