lint_r_scripts.R 1.04 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env Rscript

# ================================================================================================
# Libraries
# ================================================================================================
library("lintr")

# ================================================================================================
# Main
# ================================================================================================
# Step 01
lint("../01-Quality_control/quality_control.R", linters = with_defaults(line_length_linter(100)))

# Step 02
lint("../02-Preprocessing/preprocess.R", linters = with_defaults(line_length_linter(100)))
lint("../02-Preprocessing/plot_scan_log.R", linters = with_defaults(line_length_linter(100)))

# Step 03
lint("../03-Predict_gender/predict_gender.R", linters = with_defaults(line_length_linter(100)))

21
22
23
# Step 04
lint("../04-Clean_datasets/clean_datasets.R", linters = with_defaults(line_length_linter(100)))

24
25
# Self lintr
lint("./lint_r_scripts.R", linters = with_defaults(line_length_linter(100)))