ocpu.io is a new domain for publishing code, data and apps based on the OpenCPU system. Any R package on Github is directly available via
yourname.ocpu.io. Thereby the package can be used remotely via the OpenCPU API to access data, perform remote function calls, reproduce results, publish webapps, and much more. The OpenCPU public server page explains how requests to
ocpu.io map to the existing public demo server.
How to use
To start publishing on
ocpu.io you need to put your R functions, datasets, scripts, sweave/knitr documents into an R package and put it up on Github. This is not too difficult, there are many guides on how to do this. OpenCPU requires the name of the Github repository to match the name of the R package it contains. Use devtools to test if your package is working:
library(devtools) install_github("pkgname", "username")
If this succeeds you’re good to go. Navigate to
By default the OpenCPU public server updates packages installed from Github every 24 hours. However, the Github webhook can be used to update the package immediately every time a commit is pushed to github.