addServer {rsconnect}R Documentation

Server management

Description

These functions manage the list of known servers:

Usage

addServer(url, name = NULL, certificate = NULL, validate = TRUE, quiet = FALSE)

removeServer(name = NULL)

addServerCertificate(name, certificate, quiet = FALSE)

Arguments

url

URL for the server. Can be a bare hostname like connect.mycompany.com or a url like ⁠http://posit.mycompany.com/connect⁠.

name

Server name. If omitted, the server hostname is used.

certificate

Optional. Either a path to certificate file or a character vector containing the certificate's contents.

validate

Validate that url actually points to a Posit Connect server?

quiet

Suppress output and prompts where possible.

Examples

## Not run: 
# register a local server
addServer("http://myrsconnect/", "myserver")

# list servers
servers(local = TRUE)

# connect to an account on the server
connectUser(server = "myserver")

## End(Not run)

[Package rsconnect version 1.2.2 Index]