ROvis.utils is an R package that provides a comprehensive suite of utilities for visualizing in Rijksoverheid style.
# Install from GitHub
# install.packages("pak")
pak::pak("rivm-syso/ROvis.utils")library(ROvis.utils)
# Get the hex code for a named RIVM color
ro_color("robijnrood")
#> [1] "#ca005d"
# Get the full categorical color palette
ro_color_categorical()First point of contact for questions: SPIN team (spin@rivm.nl)
If you have ideas for releases in the future, it is a good idea to list them in the README.
See CONTRIBUTING.md for guidelines on how to contribute, and CONTRIBUTORS.md for the list of contributors.
Below we describe the most important guidelines and practicalities for R package development on this project.
We use the testthat, lintr and roxygen2 package for development of tests, code style
checks and automatic documentation. We also use the devtools and usethis package during
development to adhere to standards for R packages and make developing easier! Install them
in your Rstudio environment:
install.packages("testthat")
install.packages("lintr")
install.packages("roxygen2")
install.packages("quarto")
install.packages("pkgdown")
install.packages("devtools")
install.packages("usethis")Type devtools::load_all() in your console each time you start developing. This loads
all dependencies and non-exported functions in the NAMESPACE. This makes developing a lot easier!
To ensure code standardization and quality, follow these guidelines:
- Add tests with
usethis::use_test() - Add a new package dependency to the DESCRIPTION file with
usethis::use_package(). We use themin_versionargument to specify a minimum version. - Add a new function dependency to the NAMESPACE with
usethis::use_import_from() - Add documentation to new functions by inserting a roxygen skeleton and use
devtools::document()to create automatic documentation in themanfolder
This R package was created by the SPIN team (spin@rivm.nl).
The code can be re-used under license EUPL v.1.2. See LICENCE for details.
