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
Problem
https://crandb.r-pkg.org/-/<redacted>is a valid API call that gets history for all packages, butcran_package_history("-")results in an error. I did some debugging and the error happens here:pkgsearch/R/crandb-public-api.R
Line 313 in d613795
The problem is that
resp$versionsends up querying the list for the {versions} package, instead of theversionsindex 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
Created on 2024-08-26 with reprex v2.0.2