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")'