Skip to contents

Connect a user account to the package so that it can be used to deploy and manage applications on behalf of the account.

Usage

connectUser(
  account = NULL,
  server = NULL,
  quiet = FALSE,
  launch.browser = getOption("rsconnect.launch.browser", interactive())
)

Arguments

account

A name for the account to connect. Optional.

server

The server to connect to. Optional if there is only one server registered.

quiet

Whether or not to show messages and prompts while connecting the account.

launch.browser

If true, the system's default web browser will be launched automatically after the app is started. Defaults to TRUE in interactive sessions only. If a function is passed, it will be called after the app is started, with the app URL as a paramter.

Details

When this function is invoked, a web browser will be opened to a page on the target server where you will be prompted to enter your credentials. Upon successful authentication, your local installation of rsconnect and your server account will be paired, and you'll be able to deploy and manage applications using the package without further prompts for credentials.

See also

Other Account functions: accounts(), connectApiUser(), setAccountInfo()