Getting ready for OpenCPU 1.3

March 17, 2014

(This article was first published on OpenCPU, and kindly contributed to R-bloggers)

opencpu logo

The OpenCPU public demo server and have been upgraded to an early version of the upcoming OpenCPU 1.3 release. This release is scheduled for April 17 along with Ubuntu 14.04 (Trusty). By deploying it on the public demo server we get some testing before the actual release. Please report any problems.

New in OpenCPU 1.3

The improvements in this release are mostly internal. However there will be one subtle change: starting version 1.3, all HTTP API responses with status code 201, 301 or 302 will use an absolute url in the Location response header. For example, the response headers of a request could contain:

Date: Mon, 17 Mar 2014 06:59:26 GMT
Content-Length: 44

Whereas in previous versions, the same response would have looked like:

Date: Mon, 17 Mar 2014 06:59:26 GMT
Location: /ocpu/tmp/x0e28afb7/
Content-Length: 44

However to scale up to distributed environments where resources can be hosted on various servers, we need to start using absolute URLs.

How to update my client/app?

Most HTTP clients natively understand both absolute and relative urls, so you probably won’t notice the difference. For example the opencpu.js client library requires no changes or updates. However for the few of you that implemented a custom OpenCPU client, you might want to double check that your code understands both absolute and relative urls in the Location header, to make sure your application will be compatible with future versions of OpenCPU.

To leave a comment for the author, please follow the link and comment on their blog: OpenCPU. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)