Preparing an R package for open-source contributions: An experience report on the World Wildlife Fund's Forest Foresight

Research output: Contribution to journalArticleAcademicpeer-review

Abstract

Deforestation (i.e., the removal or destruction of forests by humans), particularly illegal, is a major cause of ecological and environmental problems. To combat illegal deforestation, the World Wildlife Fund (WWF) has developed an open-source R package to predict deforestation around the world using machine learning. The package has been used by and customized to various countries, providing immense value for environmental protection. However, the package was implemented by domain experts without software engineering background, resulting in an unstructured development process, a monolithic codebase, and a lack of documentation on processes and code. Aiming to build an open-source community to improve and maintain the package, the WWF team decided to focus on enhancing the accessibility and attractiveness of the codebase for newcomers. Supporting this goal, we conducted an action-research-like project using Scrum to improve the code quality, tooling, testing, processes, and documentation while also establishing practices to sustain and build upon these improvements. In this article, we describe this project and share our insights into opening an R package to make it more accessible for external open-source contributors. Our insights include guidance on communicating design decisions to domain experts without a software engineering background and on how to train them in software engineering practices. Further insights highlight the specific challenges of working with R packages. Lastly, our work showcases the contributions that software engineering can make to support environmental protection and can guide future projects in this direction.

Original languageEnglish
Article number112597
Number of pages13
JournalJournal of Systems and Software
Volume231
DOIs
Publication statusPublished - Jan 2026

Bibliographical note

Publisher Copyright:
© 2025 The Authors

Keywords

  • Community-driven contributions
  • Open-source development
  • Repository management
  • Software evolution

Fingerprint

Dive into the research topics of 'Preparing an R package for open-source contributions: An experience report on the World Wildlife Fund's Forest Foresight'. Together they form a unique fingerprint.

Cite this