Learn R Programming

shinyapps (version 0.4.1.8)

servers: Server Management Functions

Description

Functions to manage the list of known servers to which rsconnect can deploy and manage applications.

Usage

servers(local = FALSE)
discoverServers(quiet = FALSE)
addConnectServer(url, name = NULL, quiet = FALSE)
addServer(url, name = NULL, quiet = FALSE)
removeServer(name)
serverInfo(name)

Arguments

local
Return only local servers (i.e. not shinyapps.io)
quiet
Suppress output and prompts where possible.
url
Server's URL. Should look like http://servername/ or http://servername:port/.
name
Optional nickname for the server. If none is given, the nickname is inferred from the server's hostname.

Value

servers returns a data frame with registered server names and URLs. serverInfo returns a list with details for a particular server.

Details

Register a server with addServer or discoverServers (the latter is useful only if your administrator has configured server autodiscovery). Once a server is registered, you can connect to an account on the server using connectUser.

The servers and serverInfo functions are provided for viewing previously registered servers.

There is always at least one server registered (the shinyapps.io server)

Examples

Run this code
## 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)

Run the code above in your browser using DataLab