This file is intended for use by project collaborators. If you're interested in general information about the project, please see https://www.precisionals.ie.
- /data: Input data files should be here. Not tracked.
- /output: Generated files are stored here. Not tracked.
- /doc: Documentation related to the project.
- /extra: Files not covered elsewhere.
- /src: Source code files.
- ./ext: Common code for all subtasks containing parsed and cleaned data as well as utility functions.
- ./qc: Quality control scripts.
- ./qX: Subfolders specific for each extant subtask.
The easiest way to get started is to create a fork of the project through the GitHub website. If you will be commiting your changes to an existing fork, you can skip this step.
In any case, once you have a fork ready, you should clone the repo to your local computer:
git clone https://github.com/<owner>/precisionals-extant-task
Now you should have a new folder called precisionals-extant-task in your current directory.
You should now create a new subfolder called data
. Source files will by default reference data files in this folder, so you should save your own copy of the dataset there respecting the original file names.
cd precisionals-extant-task
mkdir data
To allow for versioning of the dataset, or if you want to keep your data files elsewhere, you can do so by setting the PALS_EXTANT_DATADIR
environment variable to the path containing your files (remote URLs are also supported).
export PALS_EXTANT_DATADIR="<path>"
Please check the documentation for your current OS on how to set environment variables permanently if you want to do so.
The project makes heavy use of R packages from the so called tidyverse
. Assuming you have your own copy of the R environment already installed, you can easily install all the dependencies with the following:
Rscript -e "install.packages(c('tidyverse', 'writexl'), repos = 'http://cran.us.r-project.org')"
You might also need to install other packages required by the specific question you will be working on. If you're unsure about which packages are required, please contact your local team to finish setting up your workstation.
Once you have finished setting up your environment, you can already start making changes. It is recommended that you create one branch for every cohesive set of changes. You can do so with:
git checkout -b new-branch
Now you are ready to do all the changes. After you're done, you should commit your changes to your local branch and when you're ready just push your changes to your remote repository (aka your fork). Once you've completed your task, you should create a pull request (PR). You can find instructions on how to do so here.
Note: Please remember to specify "Create a new branch" in the base branch dropdown (use the format qX-feature-xxx
for question specific changes, or ext-feature-xxx
for changes to public files) when creating your PR.
You're done!