Skip to content
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

Consider advanced facilities to include figures from other documents #2

Open
humburg opened this issue Jun 27, 2016 · 0 comments
Open

Comments

@humburg
Copy link
Owner

humburg commented Jun 27, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant