OpenCPU release 1.3 and 1.4
April 20, 2014
After a few months of testing we present OpenCPU versions 1.3 and 1.4. These releases do not introduce any major changes in the OpenCPU HTTP API but focus entirely on performance, reliability and security to support long running servers. The only minor API change in the switch to absolute URLs in the location header. Upgrading from OpenCPU 1.2 should be painless and is recommended.
These and future releases of the OpenCPU cloud server will target
Ubuntu 14.04 in order to take advantage of recent features in
nginx. Because this is a Long Term Support (LTS) Ubuntu release it includes 5 years of updates. Hence your OpenCPU server can run safely until April 2019 (or until you decide to upgrade).
Version 1.3 versus 1.4
OpenCPU versions 1.3 and 1.4 build on exactly the same version of the HTTP API and server code. The only difference is the version of R that is used in the cloud server. OpenCPU version 1.3 uses
R 3.0.2 included with Ubuntu, whereas OpenCPU version 1.4 uses the current version:
If you have no preference, OpenCPU 1.4 is recommended because many of the packages on
CRAN require the current version of
R and will therefore only work with OpenCPU 1.4.
How to upgrade
Because of some internal cleanup and refactoring of configuration files, it is highly recommended to install the new version of OpenCPU on a clean fresh Ubuntu 14.04 server. Usually installing a new Ubuntu server is safer and quicker than upgrading and old server anyway. See the Server Manual for standard instructions on a clean installation.
However if for whatever reason you need to upgrade a previous installation, the safest way is to uninstall previous versions before installing the new one. This ensures that no old files keep lingering around.
OpenCPU and RStudio
Using OpenCPU together with RStudio is now even easier! The
opencpu-1.4 repositories include a copy of rstudio server that you can install with a single line:
Both apache and nginx are preconfigured to proxy the
/rstudio/ path to rstudio. Hence after installing both opencpu and rstudio-server they can be accessed directly through:
Appendix B of the OpenCPU Server Manual has some more details.
If you have any problems, questions, feedback or suggestions feel free to send an email on the mailing list or open an issue on github. As is the case for many open source projects, good software comes with terrible documentation. But if anything is not working or unclear please do let me know; it is probably something small.