rstudio / rmarkdown

Dynamic Documents for R
https://rmarkdown.rstudio.com
GNU General Public License v3.0
2.87k stars 971 forks source link

`fig.dim` doesn't work (rmarkdown: 2.25) #2539

Closed wbvguo closed 8 months ago

wbvguo commented 8 months ago

Hello,

It seems the fig.dim option is not working in the code chunk, while fig.height, fig.width works fine image

image

Package Version:

packageVersion("rmarkdown")
[1] ‘2.25’

Thanks!

cderv commented 8 months ago

Hi thanks for the report.

When you say not working,

The screenshot made me think of the latter, but I am unsure. If this is it, then it is a feature request in the RStudio IDE notebook mode to support this option for plot preview.

Thanks

wbvguo commented 8 months ago

Hi, thanks for your response.

Yes, I mean the later one:

in the IDE notebook mode, when executing interactively the code cells to preview plots

the rendered html file has the correct specified length/width.

I will make a feature request on RStudio IDE, and close this issue now. Thanks for your suggestion!