rserving
enhance and simplify interacing with rserve
NPM
Getting Started
Install the module with: npm install rserving
var rserving = ; // r_dir: directory for *.R files
Documentation
- rserving.maxConnection
rserving // get current maxConnection, default is 15
rserving // set maxConnection, you need to test the max connection first
- rserving.testMaxConnection(callback, num)
rserving
- rserving.express
var express = ; var three = rservingexpress var { var args = {}; argsprods = "IBM" "YHOO" "MSFT"; reqrserving_options = name: 'ex2' entryPoint: 'getOptimalPortfolio' data: args ; }; var { res; }; var app = ; app;
Examples
var task = name: 'ex2' options: entryPoint: "getOptimalPortfolio" data: args callback: ; rserving; // set/get maxConnection to Rserve rserving; rservingrserving rservingqueue;
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
License
Copyright (c) 2013 fanlia
Licensed under the MIT license.