yihui/knitr — pull request #826 by gdetrez (2014-08-05 12:36:25+00:00)
Title: Proposed solution for #814

By not passing the output file to `knit` it should use the default
location for which the relative path to the images should be ok.

I made a few quick tests and it seems to work. Now, when doing `knit2html("test.Rmd", "out/test.html")` it will generate the markdown code in `test.md` instead of `out/test.html`