-
Notifications
You must be signed in to change notification settings - Fork 0
Initialize report using functions #12
base: main
Are you sure you want to change the base?
Conversation
usethis::use_git() usethis::use_github() usethis::use_tidy_github_actions() usethis::use_tidy_github_labels() usethis::use_pkgdown_github_pages()
…tadata. + The new_report function has argument so that the report yaml can easily be customized. + only most important metadata and params are kept in the template.
Merge commit 'b016f6238f80771e7d60404fe63e597b48724953' #Conflicts: # DESCRIPTION # R/new_report.R # tests/testthat/test-new_report.R
@PavelBal There are still other tasks in progress in this branch but could you please share your thoughs on this ? |
First remark - stick to the Otherwise, I like the idea very much! One thing - if the reports are not located in the "Code" folder, cloning the whole "V00.01" folder to "V00.02" (as an example) and then starting the project with V00.02 code will have the OLD report opened in RStudio which is absolutely confusing. |
@PavelBal Shall we make This would allow us to insert these functions in the template without having to source other files. This way, the user just needs to provide the rights arguments. Then the simulations are run or not depending on the notebooks's parameters |
I would not do it now, maybe in future when we have gathered some experience. Otherwise I am afraid we will have too many "run/simulate/xxx Scenarios` functions in the core package. |
This is the resulting output of the template |
+ rework default template + add data and figures for default template + Update scripts for default template
Theme was updated, the "test" reports now look like this: Dextromethorphan qualification report.pdf The default template contains everything to produce this document: |
…n file + optional parameter to target results subfolders
…ation$outputFolder
The
new_report()
function will create a directory using the "report_name" argument with 3 files and 1 directory:figures
directoryFor example, in a new project created by the powershell script, use
new_report()
to initialize a new report.esqlabsR.reports::new_report("my_report", "../Report/")
The
.qmd
yaml header only contains the fields that the user is most likely to change + the params:The other settings are stored in the
_quarto.yml
file that will be read by quarto during rendering:The basic metadata can be directly customize by the user and will be injected in the yaml header: