OpenCPU release 1.3 and 1.4

[This article was first published on OpenCPU, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

opencpu logo

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 R, Apache2, AppArmor and 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: R 3.1.0.

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.

# remove old versions
sudo apt-get purge opencpu-*
sudo apt-get autoremove --purge

# upgrade Ubuntu to 14.04 (if not done so yet)
sudo do-release-upgrade

# install new version on Ubuntu 14.04
sudo add-apt-repository opencpu/opencpu-1.4
sudo apt-get update
sudo apt-get install opencpu

OpenCPU and RStudio

Using OpenCPU together with RStudio is now even easier! The opencpu-1.3 and opencpu-1.4 repositories include a copy of rstudio server that you can install with a single line:

# install rstudio
sudo apt-get install rstudio-server

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:

https://your.server.com/ocpu/
https://your.server.com/rstudio/

Appendix B of the OpenCPU Server Manual has some more details.

Questions

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.

To leave a comment for the author, please follow the link and comment on their blog: OpenCPU.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)