CreateNeosComm: Creating an object for communications with NEOS

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/CreateNeosComm.R

Description

This function creates an object of class NeosComm that will contain all necessary information for dealing with HTTP requests to NEOS. This object will be needed in all requests to NEOS and hence must be created in advance of XML-RPC requests.

Usage

1
2
3
CreateNeosComm(curlopts = list(httpheader = c(`Content-Type` =
"text/xml", `User-Agent` = "R"), port = 3333), curlhandle =
getCurlHandle())

Arguments

curlopts

A named list of elements that are passed as options to curl. By default, the httpheader and the port options are preset.

curlhandle

An object of class CURLHandle. By default the returned object of getCurlHandle() is employed.

Details

A list of valid curl options can be retrieved from listCurlOptions(). Please note, that the relevant HTTP-bodies within the requests will be created directly in the API-functions provided in this package and must not be provided as list elements in curloptions. However, if one accesses NEOS via a Proxy-Server, for instance, than the values for the relevant options must be set within the list-argument curlopts. The values of the returned object will be passed down to the function xml.rpc() which is utilised for all calls to the function Nfoo contained in this package. Hereby, foo signify the name of NEOS-API.

Value

An object of class NeosComm.

Author(s)

Bernhard Pfaff

References

NEOS API: http://neos-guide.org/content/NEOS-API,
Omegahat web site for RCurl: http://www.omegahat.net/RCurl,
Omegahat web site for XMLRPC: http://www.omegahat.net/XMLRPC,
libcurl web site: http://curl.haxx.se

See Also

NeosComm

Examples

1
2
3
4
5
6
## Not run: 

nc <- CreateNeosComm()
nc

## End(Not run)

rneos documentation built on May 31, 2017, 3:11 a.m.

Related to CreateNeosComm in rneos...