Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

pandoc.formula with caption causes error #274

Closed puterleat closed 8 years ago

puterleat commented 8 years ago

For example:

f <- y~x
pandoc.formula(f, caption="Blah")

Generates this error:

Error in !is.null(caption) && caption != "" && check_caption(caption) : invalid 'y' type in 'x && y'

daroczig commented 8 years ago

Thanks for reporting this. Please test if above commit resolve the issue.

puterleat commented 8 years ago

Works for me. Thanks for fixing so quickly.