- Does the project contain R script?
- Does the project contain data?
- Does the project contain a test script?
- Do the scripts contain proper comments?
- Is the project organised in proper structure?
- Do the scripts follow R style guide?
http://style.tidyverse.org/
- Does the README display the project structure?
tree {repo} | pbcopy
Every project is a Rproj
with its own repo, which contains
README - 描述
Why is this needed? (目的)
How it is implemented? (算法、逻辑)
What does it contain? (文件)
R/get_data - 提取数据脚本
R/eda.R - 探索脚本
R/main.R - 主要脚本
R/abc.R - 其他
...
- On naming script, use
verb_result.R
- Common methods should be packaged.
- EVERY MACHINE LEARNING MODEL IS A PROJECT OF ITSELF. (
git submodule
)
Demo
├── Data
│ ├── raw.rdata
│ └── sample.rdata
├── Demo.Rproj
├── Model
│ ├── Data
│ │ ├── sample_1.csv
│ │ └── sample_2.csv
│ ├── Model.Rproj
│ └── R
│ ├── linear_reg.R
│ ├── main.R
│ └── run_test.R
├── R
│ ├── eda.R
│ ├── main.R
│ └── run_test.R
└── README.md
5 directories, 13 files
- Reformat code in RStudio
ctrl + shift + A
- Timestamp
ts
- Code break
cmd + shift + R