An R pandoc writer