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

Handling report ordering / configs #78

Open
thibautjombart opened this issue Mar 5, 2021 · 0 comments
Open

Handling report ordering / configs #78

thibautjombart opened this issue Mar 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@thibautjombart
Copy link
Collaborator

A common workflow within a factory is to have several single-purpose Rmds with some inter-dependencies, where one report uses outputs of another one. For instance, the flow of dependencies could go:

clean_data.Rmd ==> descriptive_analysis.Rmd ==> final_report.Rmd
clean_data.Rmd ==> some_other_analysis.Rmd ==> final_report.Rmd 

A simple way to handle that could be having a small script at the root of the factory e.g. run_factory.R with:

reportfactory::compile_reports("clean_data")
reportfactory::compile_reports("analysis")
reportfactory::compile_reports("final")

But if we start looping over params and subfolder, this becomes a bit clunky. I think putting these info in a data.frame and looping over the rows might be something to try. Will report back when I have an example.

@thibautjombart thibautjombart added the enhancement New feature or request label Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant