getServer {nws}R Documentation

Get Server object

Description

This function returns the server object registered using the setServer function. If a server object hasn't been registered, a default server, will be created and returned.

Usage

getServer(..., create=FALSE)

Arguments

... currently ignored.
create used to force a new server to be created and registered, even if there already is one.

Note

This function is primarily used within the nws package in to order to ease object creation and specify an ad-hoc server setup with ease. If the function is called before a call to setServer has been made, it will create, store, and return a managedServerInfo object created with the default options.

See Also

setServer

Examples

## Not run: 
hostname <- nwsHost(getServer())
## End(Not run)

[Package nws version 2.0.0.3 Index]