The sole purpose of this OpenCPU app is to demonstrate how to use the opencpu.js library to call R from Javascript using OpenCPU.
The opencpu.js library depends on jQuery and provides some convenient wrappers around $.ajax to call the OpenCPU API. A copy of jquery and opencpu.js must be included with your OpenCPU app.
Each topic consists of a minimal HTML page demonstrating basic functionality. Look at the source code of the HTML page to learn what is happening.