insightsengineering / verdepcheck

An R package that tests your R package against the min/max versions of specified dependencies
https://insightsengineering.github.io/verdepcheck/
Other
6 stars 0 forks source link
check devtools r testing utils

verdepcheck

Have you ever encounter following errors?

Error: object ‘foo’ is not exported by 'namespace:bar'
`foo()` was deprecated in bar 1.0.0.
i Please use `baz()` instead.

This package is a tool for package developers to check your package using various versions of dependencies. It will help you detect new breaking changes of dependencies as well as the minimal version supported.

Overview

Typical workflow includes the following:

Supported strategies are:

The main functions are:

This package is heavily based on pkgdepends for dependency resolution and rcmdcheck for executing "R CMD CHECK".

Install

devtools::install_github("insightsengineering/verdepcheck")

Usage

The main goal of package authors is to use it within GitHub Action or any other CI tool. See r-verdepcheck-action.

x <- max_deps_check("(path to your package)")

# print results for debugging
x$ip$show_solution()
x$ip$draw()

# create artifact
x$ip$create_lockfile("/path/to/pkg.lock")

# print R CMD CHECK results
x$check$session_info
x$check$status