Creates a connection to Posit Connect using the server URL and an api key.

connect(
  server = Sys.getenv("CONNECT_SERVER", NA_character_),
  api_key = Sys.getenv("CONNECT_API_KEY", NA_character_)
)

Arguments

server

The server URL for accessing Posit Connect. Defaults to environment variable CONNECT_SERVER

api_key

The API key to authenticate with Posit Connect. Defaults to environment variable CONNECT_API_KEY

Value

An Client object