The R-pandoc package

[Tags:bsd3, library, program]

[Skip to Readme]


Versions 0.1, 0.2, 0.2.1, 0.2.2
Dependencies base (>=4.6 && <4.10), directory (==1.2.*), filepath (>=1.3 && <1.5), pandoc-types (>=1.12 && <1.17), process (>=1.2 && <1.5), R-pandoc (==0.2.2), split (==0.2.*) [details]
License BSD3
Author Corentin Dupont
Category Text
Bug tracker
Source repository head: git clone
Uploaded Sun Dec 4 16:14:14 UTC 2016 by CorentinDupont
Distributions NixOS:0.2.2
Downloads 396 total (22 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2016-12-08 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for R-pandoc

Readme for R-pandoc-0.2.2

Build Status

A pandoc filter to embbed R plots inside markdown documents.

See the Blog post for more details on usage.


Install R:

sudo apt-get install r-base

Create a file called with the following text:

Here is a nice plot:
    ~~~ {.Rplot}
    D = 150
    T = 10
    t = seq(0, 80, 0.01)
    x = -D*exp(-(t/T))+D
    v = (D/T)*exp(-(t/T))
    plot(t, x, type="l", main="position through time", xlab="time (s)", ylab="position (m)", xlim=c(0,80), ylim=c(0, D+10),  xaxs = "i", yaxs = "i")

Now run:

    pandoc -t html --filter R-pandoc -o demo.html -s

The file demo.html should now have a nice plot included:



R-pandoc compiles code blocks containing R plots and includes the resulting images in the pandoc markup. It is meant to be run as a pandoc filter as shown above.


    git clone
    cd R-pandoc
    cabal install