Skip to content

Updated CA Profiles content #5

Open
sammypops wants to merge 27 commits intoScotGovAnalysis:masterfrom
sammypops:master
Open

Updated CA Profiles content #5
sammypops wants to merge 27 commits intoScotGovAnalysis:masterfrom
sammypops:master

Conversation

@sammypops
Copy link

• Added proj file
• Set up folder to hold scripts which define custom functions for project
• Moved content production scripts out of markdown document into a set of functions which produce all variable content
• Content production now occurs before markdown is knitted and stored on disk
• Content production parallelised
• Variable content saved to file is loaded by the markdown instead of being run in situ
• Markdown rendering parallelised
• Moved functions into separate folder
• Added extra arguments to functions which relied on global variables in scope
• Moved content production scripts to own folder
• Added new args to function calls in content production
• Made old global variables visible to scope of content production
• Simplified content production into single step at high level
• Added lots of comments to describe intention of code
• Flow of code execution is now signposted with comments

sammypops and others added 27 commits June 2, 2023 14:58
… accepts them as list in the input parameters
Save them into RDS format.
Rmd now reads the RDS file for data instead of passing in hundreds of megabytes as a parameter to the knitting process.
…brary, functions take more variables in circumstances where they relied on elements being available in the global env.

Content production is split from definitions of production functions.
…ults of the checks.

Console output is now limited to summary data. This reduces screen clutter.
And the automated table join messages are suppressed to reduce clutter in the console too. Making it easier to see when data expectations are not being met.
…es wrong and the number of pieces of content is different the knitting will not go ahead and the user will be prompted to check the output
… stage. Solution needs some thought.

Comments are left to indicate the issue
Too much depends on it being this way and a full refactoring isn't worth doing at this point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants