Skip to content
OpenCPU system for embedded scientific computation and reproducible research
R HTML JavaScript CSS Makefile
Latest commit 8471a87 May 17, 2016 @jeroenooms Bump for release
Failed to load latest commit information.
R Bug fix May 12, 2016
inst Add static vignette Mar 8, 2016
man Remove system imports Apr 29, 2016
teststuff Fix for JSON payload Jun 17, 2014
vignettes Add static vignette Mar 8, 2016
.Rbuildignore CI and readme Apr 20, 2016
.gitignore stealing travis from yihui Sep 25, 2013
.travis.yml Remove system imports Apr 29, 2016
DESCRIPTION Bump for release May 17, 2016
LICENSE Update LICENSE Apr 29, 2016
Makefile adding travis from yihui Sep 25, 2013
NAMESPACE Remove system imports Apr 29, 2016
NEWS Bump for release May 17, 2016 Update readme Apr 29, 2016
appveyor.yml Fix Apr 20, 2016
opencpu.Rproj Lazy load imports Apr 29, 2016
sample.travis.yml update travis CI Dec 13, 2013


A System for Embedded Scientific Computing and Reproducible Research with R

Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

The OpenCPU system exposes an http API for embedded scientific computing with R. The server can run either as a single-user development server within the interactive R session, or as a multi-user linux stack based on rApache and NGINX. The current R package implements the core of the system. When loaded in R, it automatically initiates the single-user server and displays the web address in the console. The OpenCPU website has more detailed API documentation.


Cloud Server

To install the cloud server in Ubuntu 14.04 or Ubuntu 16.04

#requires ubuntu 14.04 (Trusty) or 16.04 (Xenial)
sudo add-apt-repository -y ppa:opencpu/opencpu-1.5
sudo apt-get update 
sudo apt-get upgrade

#install opencpu server
sudo apt-get install -y opencpu

sudo apt-get install -y rstudio-server 

See the opencpu website for details how to install on other platforms.

Local Development server

The single-user development server will automatically start when the package is loaded in R:

> library(opencpu)
Initiating OpenCPU server...
Using config: /Users/jeroen/.opencpu.conf
OpenCPU started.
[httpuv] http://localhost:7722/ocpu
OpenCPU single-user server ready.

Use opencpu$browse() to open the testing page in a browser.

Something went wrong with that request. Please try again.