Connect your Posit Account
To publish content to Posit Connect, you need to connect your RStudio IDE to Connect to authorize the IDE to use your PositConnect account.
There are two methods to connect your account:
- Global Options: The Publishing Accounts configuration located in Global Options… under the Tool drop-down menu.
- Publishing Workflow: Using the Publish button
These procedures assume that you haven’t connected your Connect account to the RStudio IDE.
Global Options
Open the RStudio IDE.
From the menu bar, click Tools, then click Global Options….
Select the Publishing tab, then click Connect….
In the Connect Account window, select Posit Connect.
Enter the public URL of the Connect Server, then click Next to launch a browser window.
NoteThe public URL for RSC is the URL that you use to connect to Connect in your browser.
If you are not already logged into Connect, log in.
From the Connect to R page, click Connect. A success message displays at the top of the screen.
Navigate back to the RStudio IDE Verifying Account window, then click Connect Account. Your RStudio Account displays in the Publishing Accounts section.
Click OK.
You’ve successfully connected your account and can now publish directly to Connect.
Publishing Workflow
This method uses the Publishing Workflow, which kicks off when you click the Publishing button in the RStudio IDE.
Open the RStudio IDE.
Click the Publish button.
In the Publish window, click Connect.
From the What do you want to publish? panel, select one of the following:
Publish just this document
Publish all documents in the directory
From the Publish to Connect panel, select one of the following:
Publish document with source code
Publish finished document only
For this how-to, we recommend selecting Publish document with source code.
In the Connect Publishing Account window, click Next.
Enter the public URL of the Connect Server, then click Next to launch a browser window.
NoteThe public URL for RSC is the URL that you use to connect to Connect in your browser.
If you are not already logged into Connect, log in.
From the Connect to R page, click Connect. A success message displays at the top of the screen.
Navigate back to the RStudio IDE Verifying Account window and click Connect Account. Your Posit accound displays in the Publishing Accounts section.
You have successfully connected your account and can now publish directly to Connect. Congrats!