Module 01 Summary
What this module established
R earns its extra typing when the same question will be asked again or when somebody has to check your reasoning. The script is the deliverable; the number is a by-product.
Carry forward
- A project is four folders and one rule: nothing your code writes goes into the raw folder, so re-running can never change its own inputs.
- Relative paths travel; absolute paths work perfectly on exactly one machine. If a path contains your name, it is a bug nobody has hit yet.
- Look at the object between every step. A row count that changed unexpectedly localises a bug to the line that caused it.
- Every output is written by code, so the outputs folder can be deleted and rebuilt without anxiety.
Before moving on
Move on when you can delete every generated file, re-run one script, and get all of them back.
