-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Parameterised books #346
Comments
For the second question, no, there is not possible (well, it is, but not straightforward). BTW, I don't know where you got the idea params = list(
list(region = "west", otherparameter=1),
list(region = "east", otherparameter=2)
) but even with |
Re: the idea:
it was just pseudo-code. My use case is I want a report in book form with an intro, a summary, and then N intermediate chapters which are all generated from the same template but with different parameters. |
@psychemedia this is exactly what I want to achieve. It's the obvious way to report on multiple experiments that only differ in parameters. |
Not sure if anyone is still playnig around with this, but I've made a repository that does this: |
@zachary-waller This is back in scope for me atm... will check your repo out. One thing that occurred to me is incrementally adding to a report. Eg you are producing a set of monthly reports as part of an annual report, and want to run the script to add each month to the current report. I guess setting caches up properly may help with that. |
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. |
rmarkdown
provides a straightforward way of generating multiple, parameterised reports from a single, base "master report", configured by passing in parameter values from thermarkdown:render
function (RStudio/RMarkdown Parameterized Reports):How can a book be generated as compilation of a set of reports? eg something like:
concatenating separate sections of the report from a
ParameterisedDocument.Rmd
with parameter valueslist(region = "west", otherparameter=1)
, for the first part,list(region = "east", otherparameter=2)
for the second etc?What about if I also wanted to top and tail the book with a
openingPart.Rmd
and aclosingPart.Rmd
?i.e. how would I construct something with the sense of:
rmd_files: ["openingPart.Rmd", list(base ="ParameterisedDocument.Rmd", params = list( list(region = "west", otherparameter=1), list(region = "east", otherparameter=2) ) ), "closingPart.Rmd"]
The text was updated successfully, but these errors were encountered: