-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add report ordering #13
Comments
Hey @thibautjombart I believe this falls under Locke Data's remit now. Could I get a quick rundown of a use case for this? I'm not sure I understand the process - e.g.
From what I understand,
TIA. |
Hey @sgetalbo This boils down to outputs of some reports being used as inputs of others. The simplest use case I have encountered is:
However, when calling set_order(c("clean_data", "analyse_data")) Currently the workaround is to rename |
This might be something worth looking into in the future. To adapt it to the current implementation, we could think of having priorities defined in the config file, e.g.:
So that |
To handle dependencies between reports, it would be useful to implement an optional ordering of reports. This could be stored in a file
.order
or.reports_order
at the root of a factory. The order would relate to the file names, without the dates, and default to alphanumeric. I would imagine:get_order()
: returns (undated)Rmd
files in their order of compilation, defaulting to alphanumericset_order(x)
: sets the order of compilation of the reports;x
could be a vector of names, which then needs validation against the names of existing reports, or a vector of integers, in which case this is applied to the output ofget_order()
; the output will be saved in.order
reset_order()
: resets the order of compilation of the reports to default, i.e. removes the file.order
Comments and ideas welcome. I may be able to get a head start on this if @zkamvar is really not keen on it, unless we can get help from others?
The text was updated successfully, but these errors were encountered: