We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dpi
include_graphics
knitr/R/plot.R
Lines 502 to 506 in 4510c09
It seems we don't use dpi calculation for width for other than latex or html.
width
This is used here to set the out.width
out.width
knitr/R/output.R
Lines 610 to 611 in 4510c09
--- title: Test output: word_document --- ```{r} knitr::include_graphics("pyramide_age_qdl_2.jpeg", dpi = 192) ```
With this file pyramide_age_qdl_2.jpeg
It gives this markdown with no width
![](pyramide_age_qdl_2.jpeg)
setting out.width=500 for example will lead to
out.width=500
![](pyramide_age_qdl_2.jpeg){width=500}
which works in Pandoc thanks to link_attributes extension
link_attributes
For office document we use hook_plot_md_pandoc
hook_plot_md_pandoc
knitr/R/hooks-md.R
Lines 16 to 26 in 4510c09
Lines 118 to 135 in 4510c09
Maybe we should support this ?
The text was updated successfully, but these errors were encountered:
Yes, I think so.
Sorry, something went wrong.
No branches or pull requests
knitr/R/plot.R
Lines 502 to 506 in 4510c09
It seems we don't use
dpi
calculation forwidth
for other than latex or html.This is used here to set the
out.width
knitr/R/output.R
Lines 610 to 611 in 4510c09
With this file pyramide_age_qdl_2.jpeg
It gives this markdown with no width
setting
out.width=500
for example will lead towhich works in Pandoc thanks to
link_attributes
extensionFor office document we use
hook_plot_md_pandoc
knitr/R/hooks-md.R
Lines 16 to 26 in 4510c09
Which support width
knitr/R/hooks-md.R
Lines 118 to 135 in 4510c09
Maybe we should support this ?
The text was updated successfully, but these errors were encountered: