This quasiquoter calls R (http://www.r-project.org/) from ghc. Variables from the haskell-side are passed in, and variables created (or modified) are returned as the value of the quasiquote.

The R package knitr is used, which allows recording plots. But for this to work, you need to install it first, for example with:

R --no-save <<< 'install.packages("knitr")'

Changes

0.3.1

Bump utf8-string dependency

0.3

Support positional arguments

Write input/output files to Rtmp// because different hs files would create the same filename for R input/output.

comments powered byDisqus