The scripts in this repository standardize and automate the creation of individual git repositories for the creation of a Statistical Analysis Report (SAR). They also simplify the synchronization between repo remotes, regardless of location (github/gitlab/etc, USB or network drive).
Essential scripts:
SAR-new - Creates a new SAR dir (argument) in a sub-dir of the current dirSAR-remote-set - defines a remote for a SAR repo (in current dir)Accessory scripts:
SAR-rename - Renames a SAR repoSAR-remote-set - Creates and configures a SAR remote in a local/network dirUsed internally:
SAR-init - Initiates the SAR repoSAR-basedirs - Creates the standardized dir structure for the SAR repoSAR-basefiles - Creates the stardardized file structure for the SAR repoEssencial scripts:
SAR-sync - Syncs all remotes in the current dir (no arguments)SAR-sync-all - Syncs all remotes in all dirs (dirs as arguments)Accessory scripts:
SAR-remote-rename - Rename a git remote, and update its reference (also renames remote dir)SAR-remote-set-all - Batch creation and configuration of several SAR remotesA few R Markdown templates are provided suitable for SAR, SAP and general study protocols.
It includes a reference docx with pre-formatted styles for easy creation of professional reports or SAPs, in brazilian portuguese (pt) and english (en).
These reference styles docx includes a template URL pointing to a philsf-biostat organization repository.
The SAP template was elaborated following recommendations on the structure for Statistical Analysis Plans for better transparency and clarity.