My configuration results in an environment where you can only evaluate code within the document and never during export or tangling. That way it is easier to understand what happens when.
Code is only ever evaluated when you execute the document. The results of execution are stored within the document. That is my workflow.
Knitr in comparison does the opposite only evaluating code during export.
Here is the easiest way to make sense of what happens when resulting in what:
- Activity: The actions that is being performed on the document
- S : Source document modified?
- T : Destination tangled-document modified?
- W : Destination weaved-document modified?
- C : Source-Block Evaluation occurred?
- O : Org-Macro Expansion occurred?
Once you answer all of those questions you aren’t likely to have many surprises by your Org-Mode Literate Programming system.
One thought on “The Fifteen Questions That You Must Answer In Your Org Mode Literate Programming Configuration”