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,716

Version

1.7.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Aron Atkins

Last Published

December 6th, 2025

Functions in rsconnect (1.7.0)

lint

Lint a Project
generateAppName

Generate Application Name
discoverServers

Discover servers automatically
forgetDeployment

Forget Application Deployment
makeLinterMessage

Construct a Linter Message
oldApplicationConfigDir

Old Application Config Directory
resendInvitation

Resend invitation for invited users of an application
removeAuthorizedUser

Remove authorized user from an application
purgeApp

Purge an Application
rsconnectOptions

Package Options
listAccountEnvVars

Maintain environment variables across multiple applications
connectSPCSUser

Register account on Posit Connect in Snowpark Container Services
linter

Create a Linter
rpubsUpload

Upload a file to RPubs
syncAppMetadata

Update deployment records
showUsers

List authorized users for an application
restartApp

Restart an Application
listDeploymentFiles

Gather files to be bundled with an app
servers

Server metadata
rsconnectConfigDir

rsconnect Configuration Directory
rsconnect-package

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

List Files to be Bundled
showLogs

Application Logs
showMetrics

Show Application Metrics
writeManifest

Create a manifest.json
showInvited

List invited users for an application
setProperty

Set Application property
terminateApp

Terminate an Application
rsconnectProxies

HTTP Proxy Configuration
showProperties

Show Application property
showUsage

Show Application Usage
rsconnectPackages

Using Packages with rsconnect
setAccountInfo

Register account on shinyapps.io
tasks

List Tasks
taskLog

Show task log
unsetProperty

Unset Application property
addAuthorizedUser

Add authorized user to application
accountUsage

Show Account Usage
addConnectServer

Add a server
accounts

Account Management Functions
authorizedUsers

(Deprecated) List authorized users for an application
addLinter

Add a Linter
applications

List Deployed Applications
appDependencies

Detect application dependencies
addServer

Server management
configureApp

Configure an Application
deployments

List Application Deployments
deploySite

Deploy a website
deployDoc

Deploy a single document
deployTFModel

Deploy a TensorFlow saved model
deployAPI

Deploy a Plumber API
deployApp

Deploy an Application
connectApiUser

Register account on Posit Connect
connectCloudUser

Register account on Posit Connect Cloud
applicationConfigDir

Application Configuration Directory