jsRhelper To help interface R from JS Packages needed devtools roxygen2 testthat install.packages("devtools") library(devtools) to run the tests devtools::test() # it will ask you to install the required roxygen2 package example opencpu jsfiddle http://jsfiddle.net/dm89/6tsoscj8/