getServer {nws} | R Documentation |
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.
getServer(..., create=FALSE)
... |
currently ignored. |
create |
used to force a new server to be created and registered, even if there already is one. |
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.
## Not run: hostname <- nwsHost(getServer()) ## End(Not run)