Create a clinical research project with a standardized structure:
├── main.R
├── NEWS.md
├── R
│ ├── init.R
│ ├── read.R
│ ├── check.R
│ ├── description.R
│ ├── graph.R
│ └── report.R
├── README.md
└── my_proj.Rproj
Structure
At the root of the project:
README.md
contains a short description of the projectNEWS.md
contains the descriptions of the versions of the projectmain.R
is the central script that sequentially calls all the others
In the R folder:
init.R
loads all used packages and set optionsread.R
reads the data and sets global variablescheck.R
checks the data, e.g. usingedc_data_warn()
description.R
describe the data, e.g. usingcrosstable::crosstable()
graph.R
create plots, and saves them on the disk or in theplots
global listreport.R
creat the report, e.g. using theofficer
package