atusy

Results 103 comments of atusy

This is possible with `purl`. However, I would not encourage such a use case for some reasons: - The chunk may not do the same in case chunk has some...

IMO, using pandoc makes the code simple and applicable to more formats (e.g., gfm). What do you think? ```r # purloc = purl + pandoc purloc = function(x, output =...

About `inc_out`, I think it is relatively less important. Because results are expected to be reproducible. Also, a problem arise when the source Rmd contains code blocks. They are not...

Reproduced. With `keep_md: true`, I see it happens because images are aligned inline like below. They should be separated by blank lines. I'll take a look. ``` ![another caption](example_files/figure-latex/test-1.pdf) ![and...

I think this is the minimal reproducible example. ```` --- output: pdf_document --- ```{r test, fig.cap=caps, echo=FALSE} caps

I also find that `html_document(keep_md = TRUE)` has the same problem, which is inconsistent to `keep_md = FALSE`. ```` --- output: html_document: keep_md: true --- ```{r test, fig.cap=caps, echo=FALSE} caps

That is because the `w` below is `NULL` when `keep_md = TRUE`, whereas `w` becomes 672 when `keep_md = FALSE`. That results in `keep_md = TRUE` to generate markdown output...

I do not know the background, but `html_document(keep_md = FALSE)` forces a chunk option `fig.retina = NULL`. This in turn makes difference in a chunk option, `out.width`. https://github.com/rstudio/rmarkdown/blob/8cda18b54dc9db2273abcfd0862dccc19119cf09/R/html_document.R#L518-L519 https://github.com/yihui/knitr/blob/05ccb074deeedf699feff93712df6557c1143076/R/utils.R#L286-L294

@cderv Oh yes, you are right! Thanks. I was totally forgetting about it. It means this behavior has been continued at least two years. Anyway, I close the #2033 and...