Skip to content

Commit

Permalink
Merge pull request #335 from lindbrook/packageHistory
Browse files Browse the repository at this point in the history
restore use of pkgsearch::cran_package_history() in packageHistory()
  • Loading branch information
lindbrook authored Aug 1, 2023
2 parents 7bbc2e9 + 8aa4026 commit a83ebfa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: packageRank
Type: Package
Title: Computation and Visualization of Package Download Counts and Percentiles
Version: 0.8.1.9004
Date: 2023-07-27
Version: 0.8.1.9005
Date: 2023-08-01
Authors@R: person("lindbrook", email = "[email protected]",
role = c("aut", "cre"))
Maintainer: lindbrook <[email protected]>
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### packageRank 0.8.1.9005

- restore use of pkgsearch::cran_package_history() in packageHistory().


### packageRank 0.8.1.9004

- use packageHistory0() instead of pkgsearch::cran_package_history() in
Expand Down
10 changes: 4 additions & 6 deletions R/packageHistory.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ packageHistory <- function(package = "cholera", check.package = FALSE) {
}

if (any(on.cran)) {
# history <- lapply(package[on.cran], function(x) {
# pkgsearch::cran_package_history(x)
# })

# cran.out <- transform_pkgsearch(history)
history <- lapply(package[on.cran], function(x) {
pkgsearch::cran_package_history(x)
})

cran.out <- lapply(package[on.cran], packageHistory0)
cran.out <- transform_pkgsearch(history)
}

if (exists("cran.out") & exists("archive.out")) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/packageRank)](https://cran.r-project.org/package=packageRank)
[![GitHub\_Status\_Badge](https://img.shields.io/badge/GitHub-0.8.1.9004-red.svg)](https://github.com/lindbrook/packageRank/blob/master/NEWS.md)
[![GitHub\_Status\_Badge](https://img.shields.io/badge/GitHub-0.8.1.9005-red.svg)](https://github.com/lindbrook/packageRank/blob/master/NEWS.md)
## packageRank: compute and visualize package download counts and rank percentiles

[‘packageRank’](https://CRAN.R-project.org/package=packageRank) is an R
Expand Down

0 comments on commit a83ebfa

Please sign in to comment.