-
-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
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
Caption placed incorrect when using multiple include_graphics() #1771
Comments
This is making "Mastering Shiny" look a little shoddy: https://mastering-shiny.org/action-dynamic.html#updating-inputs |
Currently with knitr::include_graphics(c("test-1.png", "test-2.png", "test-3.png")) Internally, it is expected that the caption is placed after the last figure. a counter options Did you already try this ? Do you call If so, I think there is indeed improvement to make on how Hope it helps. |
I'm generating the screenshots with code, so I can work around the problem (now that I know how, thanks!), but it seems odd that I have to do something different with |
Yes I agree that Lines 241 to 243 in c25df11
and Line 557 in 0daf31b
It works already with your reprex but it needs more tests before a PR to see if it breaks anything and it it handles all cases. working in branch fix-1771 Just sharing the lead I follow... |
…is used (#1776) For each include_graphics(x), the number of plots is length(x).
Should be fixed now. Thanks for the report, and thank @cderv for the PR! |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
If I write
The figure caption appears after
test-1.png
, instead of aftertest-3.png
:Full reprex here: fig-cap.zip
The text was updated successfully, but these errors were encountered: