Thank you for considering contributing to OKplan
.
OKplan
is one of several packages assembled under the name NVIverse
,
a collection of R-packages with tools to facilitate data management and
data reporting at the Norwegian Veterinary Institute (NVI).
There are several ways you can contribute to this project: ask a question, propose an idea, report a bug, improve the documentation, or contribute code.
Using OKplan
and need help? Browse the package help to see if you can
find a solution. Still problems? Post your question in R-forum at
workplace or contact the package maintainer by
email.
Have an idea for a new OKplan
feature? Take a look at the OKplan
help and issue
list to
see if it isn’t included or suggested yet. If not, suggest your idea as
an issue on
GitHub.
While we can’t promise to implement your idea, it helps to:
See below if you want to contribute code for your idea as well.
Using OKplan
and discovered a bug? Don’t let others have the same
experience and report it as an issue on
GitHub
so we can fix it. A good bug report makes it easier for us to do so, so
please include:
Noticed a typo on the function help? Think a function could use a better example? Good documentation makes all the difference, so your help to improve it is very welcome!
Functions are described as comments near their code and translated to
documentation using roxygen2
.
If you want to improve a function description:
R/
directory in the code
repository.#'
).Care to fix bugs or implement new functionality for our_package? Great! Have a look at the issue list and leave a comment on the things you want to work on. See also the development guidelines below.
If you want to contribute code, you are welcome to do so. You will find
a description of the code conventions, which have been used, in the
vignette “NVIverse code conventions” in the package NVIpackager
. A
summary of the principles and style convention used for
NVIverse
-packages is given below.
Please limit the number of package dependencies for OKplan
. The
use of base functions is much appreciated.
New code should generally follow the tidyverse style guide with some modifications.
styler
package to
apply spaces:
styler::style_file(filename, scope = c("spaces", "line_breaks"))
.
Please don’t restyle code that has nothing to do with your pull
request.You should add a bullet point to NEWS
motivating the change.
You should add yourself as a contributor to the DESCRIPTION
.
Although not expected from all contributors, it will be highly appreciated if you also are willing to suggest:
documentation for new functions or new arguments to existing
functions The NVIverse
-packages use
roxygen2
for
documentation.
argument checking of the function arguments. The NVIverse
-packages
use the assert-functions from the
checkmate
package
for argument checking as well as some additional assert-functions in
NVIcheckmate
.
one or more tests ensuring that the function works as intended. The
NVIverse
-packages use
testthat
for tests.
We follow the commit message style guide maintained within the angular.js project.
The start of commit messages should be one of the following:
Do not capitalize the first letter.
Please note that this project is released with a Contributor Code of Conduct. By participating to this project, you agree to abide by its terms.
This document is adapted from a template by @peterdesmet .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.