rhttpd: The Rhttpd based single-user OpenCPU server.
Description
The Rhttpd, a.k.a "Dynamic Help Server" provides an alternative http server in case httpuv
is not available (e.g. due to firewall restrictions). Currently, two different implementations
of Rhttpd exist: a simple built-in version in R (startDynamicHelp), and
a reimplementation which is part of rstudio-server (not rstudio-desktop).
Usage
rhttpd
Arguments
Format
Control object
Details
The performance and reliability of the built-in Rhttpd varies a lot, especially on Windows.
When possible, it is recommended to avoid this and use the httpuv based OpenCPU server instead (see opencpu).
The rstudio-server implementation of Rhttpd seems a bit better.
Another disadvantage is that Rhttpd runs in the currrent process and will block the session during http requests.
When hosted using the Rhttpd, OpenCPU is API is mounted under the /custom/ocpu/ url.
For example: http://localhost:8787/custom/ocpu/library/stats.