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.mdcontains a short description of the projectNEWS.mdcontains the descriptions of the versions of the projectmain.Ris the central script that sequentially calls all the others
In the R folder:
init.Rloads all used packages and set optionsread.Rreads the data and sets global variablescheck.Rchecks the data, e.g. usingedc_data_warn()description.Rdescribe the data, e.g. usingcrosstable::crosstable()graph.Rcreate plots, and saves them on the disk or in theplotsglobal listreport.Rcreat the report, e.g. using theofficerpackage