Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (8 sloc) 234 Bytes

Does Haskell work with knitr?

Note we have to specify the compiler manually, e.g. engine.path='ghc' (haskell itself may not exist as an executable program).

[x | x <- [1..10], odd x]
## [1,3,5,7,9]