This repository contains a common set of functions and scripts used by BNR Researchers. It's purpose is to avoid replication of efforts across different groups and maintain common scripts in a structured way. Use cases might for example include the reprojection to certain grids, the conversion of model output formats to different format types or generic commonly used helper functions.
Every BNR researcher can suggest and add new functions to the package. To maximize understanding and usability, please stick to the following house rules:
- The
main
branch contains stable functions. Thedev
branch hot updates. To avoid merging conflicts preferably create a new branch named after yourself and then a pull request todev
. - Functions should be stored in the
R
folder and one script per file. - New scripts and functions should be named in camelCase with a prefix suggesting content, e.g. for a spatial file
sp_aggregateNUTS
. - Each script should have at least a minimal documentation with title, description, parameters, example and output function.
- Where possible add unit tests to each function to catch wrong inputs early on.
See this website for more general help and examples in developing content for R-packages.
Please note that the BNRTools project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.