Skip to content

cran_package_history("-") fails #126

Description

@mccarthy-m-g

Problem

https://crandb.r-pkg.org/-/<redacted> is a valid API call that gets history for all packages, but cran_package_history("-") results in an error. I did some debugging and the error happens here:

df_list <- list(rectangle_packages(resp$versions))

The problem is that resp$versions ends up querying the list for the {versions} package, instead of the versions index in each package.

Would you be open to expanding the function to support the cran_package_history("-") call? Happy to start a PR for it!

reprex

library(pkgsearch)

cran_package_history("-")
#> Warning in description_list$releases <- NULL: Coercing LHS to a list

#> Warning in description_list$releases <- NULL: Coercing LHS to a list

#> Warning in description_list$releases <- NULL: Coercing LHS to a list
#> Error: Inputs can't be recycled to a common size.

Created on 2024-08-26 with reprex v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions