connectApiUser | R Documentation |
connectUser()
and connectApiUser()
connect your Posit Connect account to
the rsconnect package so that it can deploy and manage applications on
your behalf.
connectUser()
is the easiest place to start because it allows you to
authenticate in-browser to your Posit Connect server. connectApiUser()
is
appropriate for non-interactive settings; you'll need to copy-and-paste the
API key from your account settings.
connectApiUser(account = NULL, server = NULL, apiKey, quiet = FALSE)
connectUser(
account = NULL,
server = NULL,
quiet = FALSE,
launch.browser = getOption("rsconnect.launch.browser", interactive())
)
account |
A name for the account to connect. |
server |
The server to connect to. |
apiKey |
The API key used to authenticate the user |
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 |
Other Account functions:
accounts()
,
setAccountInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.