OpenCPU App Demo

The sole purpose of this OpenCPU app is to demonstrate how to use the opencpu.js library to call R from Javascript using OpenCPU.

Introduction

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.

Topics

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.

  1. Calling a function
  2. Making a plot
  3. Include data in a package
  4. Upload a file
  5. Chaining functions (use session)