jeromyanglim / rmarkdown-rmeetup-2012

Reproducible analysis with knitr, R Markdown, and RStudio: Slides and example R Markdown files from the presentation
http://jeromyanglim.blogspot.com
26 stars 38 forks source link

What are the main use cases for using the markdown package? #16

Closed jeromyanglim closed 12 years ago

jeromyanglim commented 12 years ago

see also http://stackoverflow.com/a/10969107/180892

library(markdown)

To see options

code fragment

markdownToHTML('test.md', 'test.html', options='fragment_only')

or see the fragment.only option.

This is useful when incorporating HTML into a blog post and some forums.

Use external figures rather than base 64 images

Base 64 is convenient in that everything is contained in one file.

However, base 64 images should be avoided when:

Disable hard wrap

I'm used to LaTeX and standard markdown where a single new line character has no effect on formatting. Thus, disabling the default option of 'hard_wrap' prevents this behaviour.