Contribute

Carob is an open-source community project to standardize and compile agricultural research data. You are invited to contribute to Carob by checking and completing draft scripts in scripts/_todo/ (see the to-do list), writing new R scripts for datasets of interest, or improving existing scripts. All scripts are available on github (in the scripts folder). See How Carob works for an overview of the architecture and data pipeline.

To contribute you can follow these steps

  1. Install the current version of R and git. You can also install R-Studio.

  2. In R, install the “carobiner” package with remotes::install_github("carob-data/carobiner") (you may need to first run install.packages("remotes")).

  3. Fork the Carob repo to your github account.

  4. Clone the forked repo to your computer.

  5. Sync your fork’s main branch with carob-data/carob and create a new branch for the dataset you are working on (see Git branches).

  6. Pick a draft or start a new script: check and complete an existing draft in scripts/_todo/ (see the to-do list and working with drafts in _todo), create a new R script with carobiner::draft(uri, path, group), or improve an existing script. See this example and the guidelines. You can also use LLMs to help draft a script.

  7. Check your work by running carobiner::run_carob() for the new or changed R script.

  8. Add and commit your changes on that branch, then push the branch to your forked repo on github.

  9. Create a pull request from that branch to integrate your changes into the main repo. Each pull request must contain only one script (one dataset) at a time — pull requests with multiple scripts covering multiple datasets are not allowed. Using one branch per script lets you submit multiple pull requests in parallel.

If you are not familiar with these procedures you can try to follow these instructions.

If you find this procedure too daunting we can also try to work with you in other ways. You can write to us using this contact form, or raise an issue on github.

You can discover new data sets with the Gardian search engine. You can also look at our to-do list for ideas. You can check our done list to make sure you do not work on a dataset that has already been processed. But since there can be a delay in updating what is shown here, before you start working on a dataset, you should check with carobiner::on_github if it has already been done (and has been added to the github repo). You can also help fix some of the remaining issues.