yihui / printr

Some (magical) printing methods for knitr
https://yihui.org/printr/
118 stars 24 forks source link

Consider the option rmarkdown.pandoc.to #2

Closed yihui closed 9 years ago

yihui commented 10 years ago

See https://github.com/rstudio/rmarkdown/commit/e6f8a779818aaff605e269f6ca58accbb166516c

When printing an object, we need to consider two types of output formats:

  1. opts_knit$get('out.format') is for general document formats, e.g. Rnw, Rhtml, Rmd, Rrst, ...
  2. opts_knit$get('rmarkdown.pandoc.to') is for R Markdown only
jankatins commented 9 years ago

Not sure from the comment, but this seems related: https://github.com/IRkernel/IRkernel/issues/59

The issue is about getting output in a suitable format (-> multiple mimetypes: plain text, markdown, html) for the rkernel for the jupyter notebook.

flying-sheep commented 9 years ago

yeah, your idea to join efforts is great. we could probably rip out the actual code from printr/knitr and create a lean library that provides the representations we all need without depending on printr, knitr or IRkernel.

yihui commented 9 years ago

Sorry, but I don't have the bandwidth to work on that at the moment. I understand a separate lean package can be nice, though.

This particular issue for the printr repo has been solved, so I'm closing it now.