Skip to content

Consider advanced facilities to include figures from other documents #2

Description

@humburg

Consider introduction of syntax to include figures generated by child documents. Currently this can be achieved by doing something along the lines of what is sketched below.


Child document 'child.Rmd':

'''{r prepFig}
## assemble ggplot object in a cached chunk
fig <- ggplot(...) + ...
'''

Parent document:

params:
    depends:
        value:
             child: child.Rmd

...
Other content
...

'''{r plotFig, dependson='child/prepFig', fig.cap="Some caption"}
plotMD(fig)
'''

This feels more like a workaround than an actual feature. A slightly simplified (and more obvious) way to do this might be useful.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions