checklist

An R package for checking R packages and R code

https://github.com/inbo/checklist

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (19.4%) to scientific vocabulary

Keywords

checklist continuous-integration continuous-testing quality-assurance r
Last synced: 6 months ago · JSON representation ·

Repository

An R package for checking R packages and R code

Basic Info
Statistics
  • Stars: 18
  • Watchers: 9
  • Forks: 2
  • Open Issues: 16
  • Releases: 25
Topics
checklist continuous-integration continuous-testing quality-assurance r
Created over 5 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Zenodo

README.Rmd

---
output: github_document
---




[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle:maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing-1)
![GitHub](https://img.shields.io/github/license/inbo/checklist)
[![Release](https://img.shields.io/github/release/inbo/checklist.svg)](https://github.com/inbo/checklist/releases)
[![R build status](https://github.com/inbo/checklist/actions/workflows/check_on_main.yml/badge.svg)](https://github.com/inbo/checklist/actions)
![r-universe name](https://inbo.r-universe.dev/badges/:name?color=c04384)
![r-universe package](https://inbo.r-universe.dev/badges/checklist)
[![Codecov test coverage](https://codecov.io/gh/inbo/checklist/branch/main/graph/badge.svg)](https://app.codecov.io/gh/inbo/checklist?branch=main)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/inbo/checklist.svg)
![GitHub repo size](https://img.shields.io/github/repo-size/inbo/checklist.svg)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4028303.svg)](https://doi.org/10.5281/zenodo.4028303)
 

# The Checklist Package A hexagon with the word checklist

```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE, comment = "#>", fig.path = "man/figures/README-",
  out.width = "100%", eval = FALSE
)
```

The goal of `checklist` is to provide an elaborate and strict set of checks for R packages and R code.

## Installation

You can install the package from the [INBO universe](https://inbo.r-universe.dev/builds) via

```{r universe}
# Enable the INBO universe
options(
  repos = c(
    inbo = "https://inbo.r-universe.dev", CRAN = "https://cloud.r-project.org"
  )
)
# Install the packages
install.packages("checklist", dependencies = TRUE)
```

If that doesn't work, you can install the version from [GitHub](https://github.com/inbo/checklist/) with:

```{r installation}
# install.packages("remotes")
remotes::install_github("inbo/checklist", dependencies = TRUE)
```

## Setting a default organisation

We created `checklist` with the Research Institute for Nature and Forest (INBO) in mind.
When you don't specify the organisation, `checklist` assumes the code was written by INBO personnel.
INBO has specific requirements which are not relevant for external users of `checklist`.

When you are not writing code for INBO, we recommend that you set a default `organisation`.
Below we specify the defaults for INBO.
More details in `vignette("organisation", package = "checklist")`.

```{r organisation}
library(checklist)
org <- organisation$new(
  github = "inbo", community = "inbo", email = "info@inbo.be",
  rightsholder = "Research Institute for Nature and Forest (INBO)",
  funder = "Research Institute for Nature and Forest (INBO)",
  organisation = list(
    "inbo.be" = list(
      affiliation = c(
        en = "Research Institute for Nature and Forest (INBO)",
        nl = "Instituut voor Natuur en Bosonderzoek (INBO)"
      ),
      orcid = TRUE
    ) 
  )
)
default_organisation(org = org)
```

## Using `checklist` on a package.

Before you can run the checks, you must initialise `checklist` on the package.
Either use `create_package()` to create a new package from scratch.
Or use `setup_package()` on an existing package.
More details in `vignette("getting_started", package = "checklist")`.

```{r package-initialise}
create_package()
```

Once initialised, you can run all the checks with `check_package()`.
Or run the individual checks.

```{r package-checks}
check_cran()
check_description()
check_documentation()
check_lintr()
check_filename()
check_folder()
update_citation()
```

To allow some of the warnings or notes, first run the checks and store them in an object.
Update `checklist.yml` by writing that object.

```{r package-allow-warnings}
x <- check_package()
write_checklist(x)
```

## Using `checklist` on a project.

Before you can run the checks, you must initialise `checklist` on the project.
Either use `create_project()` to create a new package from scratch.
Or use `setup_project()` on an existing package.
More details in `vignette("getting_started_project", package = "checklist")`.

```{r project-initialise}
library(checklist)
create_project()
```

Once initialised, you can run all the checks with `check_project()`.
Or run the individual checks.

```{r project-checks}
check_lintr()
check_filename()
check_folder()
update_citation()
```

To allow some of the warnings or notes, first run the checks and store them in an object.
Update `checklist.yml` by writing that object.


```{r project-allow-warnings}
x <- check_project()
write_checklist(x)
```

Owner

  • Name: Research Institute for Nature and Forest (INBO)
  • Login: inbo
  • Kind: organization
  • Location: Belgium

Open source, data and science initiatives of the Research Institute for Nature and Forest (INBO)

Citation (CITATION.cff)

cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: "checklist: A Thorough and Strict Set of Checks for R Packages and Source Code"
authors:
- given-names: Thierry
  family-names: Onkelinx
  affiliation: Research Institute for Nature and Forest (INBO)
  orcid: 0000-0001-8804-4216
keywords:
- quality control
- documentation
- publication
contact:
- given-names: Thierry
  family-names: Onkelinx
  affiliation: Research Institute for Nature and Forest (INBO)
  orcid: 0000-0001-8804-4216
doi: 10.5281/zenodo.4028303
license: GPL-3.0
repository-code: https://github.com/inbo/checklist/
type: software
abstract: "An opinionated set of rules for R packages and R source code projects."
identifiers:
- type: doi
  value: 10.5281/zenodo.4028303
- type: url
  value: https://inbo.github.io/checklist/
version: 0.4.2

GitHub Events

Total
  • Create event: 7
  • Release event: 1
  • Issues event: 13
  • Watch event: 1
  • Delete event: 4
  • Issue comment event: 24
  • Push event: 40
  • Pull request review comment event: 1
  • Pull request review event: 4
  • Pull request event: 10
Last Year
  • Create event: 7
  • Release event: 1
  • Issues event: 13
  • Watch event: 1
  • Delete event: 4
  • Issue comment event: 24
  • Push event: 40
  • Pull request review comment event: 1
  • Pull request review event: 4
  • Pull request event: 10

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 70
  • Total pull requests: 45
  • Average time to close issues: 6 months
  • Average time to close pull requests: 26 days
  • Total issue authors: 9
  • Total pull request authors: 6
  • Average comments per issue: 2.49
  • Average comments per pull request: 2.18
  • Merged pull requests: 36
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 6
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 1 hour
  • Issue authors: 3
  • Pull request authors: 3
  • Average comments per issue: 0.29
  • Average comments per pull request: 0.17
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ElsLommelen (28)
  • ThierryO (21)
  • hansvancalster (13)
  • wlangera (11)
  • peterdesmet (8)
  • florisvdh (3)
  • adamhsparks (2)
  • rempsyc (1)
  • etiennebacher (1)
  • mb706 (1)
  • csgillespie (1)
Pull Request Authors
  • ThierryO (26)
  • hansvancalster (11)
  • ElsLommelen (7)
  • wlangera (4)
  • peterdesmet (1)
  • florisvdh (1)
Top Labels
Issue Labels
enhancement (7) question (5) bug (5) documentation (1) help wanted (1)
Pull Request Labels

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • R6 * imports
  • assertthat * imports
  • codemetar * imports
  • desc * imports
  • devtools > 2.4.0 imports
  • fs * imports
  • gert * imports
  • httr * imports
  • hunspell * imports
  • jsonlite * imports
  • lintr >= 2.0.1.9000 imports
  • pkgdown * imports
  • rcmdcheck * imports
  • renv * imports
  • rmarkdown * imports
  • rorcid * imports
  • sessioninfo * imports
  • utils * imports
  • withr * imports
  • yaml * imports
  • covr * suggests
  • curl * suggests
  • knitr * suggests
  • mockery * suggests
  • roxygen2 * suggests
  • rstudioapi * suggests
  • showtext * suggests
  • sysfonts * suggests
  • testthat * suggests
.github/workflows/check_on_branch.yml actions
  • inbo/actions/check_pkg master composite
.github/workflows/check_on_different_r_os.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/upload-artifact master composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite
.github/workflows/check_on_main.yml actions
  • inbo/actions/check_pkg master composite
.github/workflows/release.yml actions
  • actions/checkout v2 composite
  • actions/create-release v1 composite
Dockerfile docker
  • rocker/verse latest build