Using includeMarkdown() or similar

Hi all. I'm using includeMarkdown() within bookdown to pull a list of learning objectives I have stored in a different *.Rmd file. That works fine.

What I'd like to be able to do is include only a section of the *.Rmd file. For example, within the second file I have different learning objectives for different chapters and in main book I only want to pull the relevant section(s) at various points. Is there a way to do this using anchors or such? Or a different approach?


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

I don't think there is an official way to do that.

You can include only child document in their whole. You could split your documents in several other pieces maybe ?

Otherwise, this would require developing your own function to do this maybe by reading and parsing the file content.