Skip to content

Suggest checking reverse dependencies only if they exists #1817

Closed
@llrs

Description

When using use_release_issue(), it always warns to run reverse dependency checks via

release_revdepcheck <- function(on_cran = TRUE, is_posit_pkg = TRUE, env = NULL) {

I think it might be easy to make it conditionally to if there is any dependency in CRAN.
Something along:

if (lengths(tools::package_dependencies(pkg, which = "all", reverse = TRUE)) == 0) {
    return(NULL)
}

For new releases and new package developers it will be easier to go through one less item.
It can be a nice warning to developers when package get their first reverse dependency.

I see usethis is already hitting the 20 dependencies limit. Maybe tools can be "hidden" as a Suggests or use one of the current dependencies for the same functionality.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions