Skip to content

Commit

Permalink
version 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fmichonneau authored and cran-robot committed Jul 3, 2024
1 parent 4b5f9c0 commit 34df3b8
Show file tree
Hide file tree
Showing 21 changed files with 1,131 additions and 411 deletions.
15 changes: 7 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: foghorn
Title: Summarize CRAN Check Results in the Terminal
Version: 1.5.2
Version: 1.6.0
Authors@R:
c(person(given = "Francois",
family = "Michonneau",
Expand All @@ -16,19 +16,18 @@ URL: https://fmichonneau.github.io/foghorn/,
https://github.com/fmichonneau/foghorn
BugReports: https://github.com/fmichonneau/foghorn/issues
Depends: R (>= 3.1.0)
Imports: clisymbols (>= 1.0.0), crayon (>= 1.3.2), curl (>= 2.2), httr2
(>= 0.2.1), rlang (>= 0.4.3), rvest (>= 0.3.2), tibble (>=
1.2), xml2 (>= 1.0.0)
Suggests: covr, dplyr, knitr, progress, rmarkdown, testthat
Imports: cli (>= 3.6.1), curl (>= 2.2), httr2 (>= 1.0.0), rlang (>=
0.4.3), rvest (>= 0.3.2), tibble (>= 1.2), xml2 (>= 1.0.0)
Suggests: covr, dplyr, knitr, progress, rmarkdown, testthat, withr
VignetteBuilder: knitr
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2024-02-02 10:23:54 UTC; francois
Packaged: 2024-07-02 13:09:38 UTC; francois
Author: Francois Michonneau [aut, cre],
Ben Bolker [ctb]
Maintainer: Francois Michonneau <francois.michonneau@gmail.com>
Repository: CRAN
Date/Publication: 2024-02-02 10:40:02 UTC
Date/Publication: 2024-07-02 14:10:02 UTC
39 changes: 20 additions & 19 deletions MD5
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
9789706fb32eaac076bb1c5e6bd4cf4e *DESCRIPTION
25e1c539b6247d2ee3b2997439d3e5c5 *DESCRIPTION
dc0087c0a3febfe4cb85d598d4af87bd *LICENSE
0228e01697250b5059b99a095c21a1c8 *NAMESPACE
b640cea8024cdf9e53485400318b9412 *NEWS.md
7daeebcb6c70be8c5e03100e721d4711 *NAMESPACE
954d31129b611300e2abe76ca041cfaf *NEWS.md
0508057a99755cdf1e1ce6cdf55896b9 *R/cran_check_table.R
bc27787760f4cb36fe3a0fda1565e299 *R/cran_details.R
ca6bc2ff22fc1ef39afd07ffecf4bfa8 *R/cran_files.R
fc1aa644264776ee37af152d9ac7065f *R/cran_details.R
5ef752c20e3c4e08817edc93f6b14a02 *R/cran_files.R
c75a1169dda0c7f1bd79fe2bcfc538a4 *R/cran_flavors.R
0f958750d4038de2811369938544a9c9 *R/cran_queue.R
b97e12a171689f2d9951cea69ce79291 *R/cran_results.R
f068c3c89a11f4b6169761310006bce2 *R/defaults.R
80f6d47f801f3ae7b9425fb9c776f20a *R/cran_results.R
4233731b7399db1bb4c4c953c5b2dfde *R/deadline.R
8aca65d249a139bd4dd178f53d0957a0 *R/defaults.R
7aea83b3d9f738776c61893aae705bcd *R/deprecated.R
d79c57dc41ebd4147e2b4986bb6e9d25 *R/foghorn-package.R
d0f2eb9893e92c2aa717602b8a4dc77d *R/foghorn.R
88c51598ceb61e8e28472f3592e140ac *R/utils.R
2bb76bc06cfd82bb8d254e6b3e6e5d31 *R/foghorn.R
f26931df61b221424b41fe05cb83e100 *R/utils.R
26130db78afca19f4b1fab15889b4a7d *R/visit_cran_check.R
e7b9effc1e32e79ead60c510b196efa4 *R/winbuilder_queue.R
a30a25770eb2262c6ff7c17dad4f2fed *README.md
69c0d6d62e6cd698c7faf1d56f6abcad *build/vignette.rds
33255fd211047c67ca5692333c6ce4b1 *README.md
2e63bc47bfcc64edad26554e26efc7ac *build/vignette.rds
55c7f61ec0e1d5bdc3f238e218c9d67f *inst/WORDLIST
538414bbc7edab02fef9775efbbc2a80 *inst/doc/foghorn.Rmd
0463821d92892c28f06209b9fdef62ab *inst/doc/foghorn.html
c37939abaa9cc399a8929bb3464aff6e *inst/doc/foghorn.Rmd
bd0860b15d44cd28046f04f20f88a34d *inst/doc/foghorn.html
f763e5a14ddd4cc2366579fc4a7275fe *man/check_cran_results.Rd
0dc47935fcd637bac6c36e5187d927b6 *man/cran_details.Rd
9428dbb9674b82360ee2d7a4a5af80d6 *man/cran_details.Rd
63b84ba9a8ffa9f00557c7cb0dd5f635 *man/cran_incoming.Rd
ed17109dc8353cff1cb59b4e7837e22a *man/cran_results.Rd
63d178cc08fa9ff0977ccb247ec60407 *man/cran_results.Rd
89d02536d7d35cf69a74c2e2e6555893 *man/figures/logo.png
7ff239cd643fa62e7fb2bc05a2f75d70 *man/foghorn.Rd
2e5fe2bef347c5e59727b8d45b3bf78f *man/n_cran_flavors.Rd
d8f2c96d63d982ea3a844f040746dae3 *man/summary_cran_results.Rd
20be04ee15d708d2b3e758335e2b382e *man/visit_cran_check.Rd
f6f5370618d07d44049a5583e38f43e8 *man/winbuilder_queue.Rd
efd1e9bd3d895c5b3266926c38ba09cc *tests/testthat.R
702388126c56952ab7d17202573c172d *tests/testthat/test-foghorn.R
e2a98e51b1ad0f10c8cb29c5fdae30f2 *tests/testthat/test-foghorn.R
33a68ae1416c03c666b7504f135b42ab *tests/testthat/test-incoming.R
dbb2f3b4550c1e47e841eafda3506c46 *tests/testthat/test-n_cran_platforms.R
3eab107843da7318a917be520288d5c2 *tests/testthat/test-n_cran_platforms.R
f418a12fe1a3559372ef81184bc585ba *tests/testthat/test-winbuilder-queue.R
538414bbc7edab02fef9775efbbc2a80 *vignettes/foghorn.Rmd
2fcdcd408ef95023ff7fd1012e5f0962 *vignettes/foghorn.Rmd.orig
c37939abaa9cc399a8929bb3464aff6e *vignettes/foghorn.Rmd
349c2dc608bdfa04a73e4d79558c0cc7 *vignettes/foghorn.Rmd.orig
16 changes: 8 additions & 8 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export(summary_cran_details)
export(summary_cran_results)
export(visit_cran_check)
export(winbuilder_queue)
importFrom(clisymbols,symbol)
importFrom(crayon,blue)
importFrom(crayon,bold)
importFrom(crayon,cyan)
importFrom(crayon,green)
importFrom(crayon,magenta)
importFrom(crayon,red)
importFrom(crayon,yellow)
importFrom(cli,col_blue)
importFrom(cli,col_cyan)
importFrom(cli,col_green)
importFrom(cli,col_magenta)
importFrom(cli,col_red)
importFrom(cli,col_yellow)
importFrom(cli,style_bold)
importFrom(cli,symbol)
importFrom(curl,has_internet)
importFrom(httr2,req_options)
importFrom(httr2,req_perform_parallel)
Expand Down
65 changes: 45 additions & 20 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
# foghorn
# foghorn 1.6.0

## New Features

* The output of `cran_results()` and `summary_cran_results()` can now include
the deadline fixed by CRAN. This deadline is the date by which requested
changes need to be implemented before the package gets archived. To see any
deadline that might have been set by CRAN Maintainers, add (`"deadline"`) as
one of the values to the `show` argument. The value of the `show` argument
can also be controled by the local option `foghorn_columns`.
* The `cran_results()` function gains the `max_requests` argument that limits
the number of requests that are performed against the CRAN website in a single
query.

## Bug fixes

* Packages that only have "other issues" will no longer show "All clear" in the
summary output.

## Other changes

* The `{crayon}` package has been replaced with `cli` for styling the output.
* The `{clisymbols}` package has been replaced with `cli` for the symbols
displayed in the output. (#60, reported by @olivroy)
* When using the CRAN database as a data source, functions will error if the
email address specified is invalid. This behavior is consistent with what
happens when using the CRAN website as a data source.

# v1.5.2
# foghorn 1.5.2

## Other changes

Expand All @@ -10,7 +35,7 @@
* `cran_results()` will now error if the package fails to retrieve results from
CRAN. (#53, suggested by @eddelbuettel)

# v1.5.1
# foghorn 1.5.1

## New Features

Expand All @@ -31,7 +56,7 @@
(https://cranchecks.info/) has been removed from the code base.
* All support for FTP access has been removed.

# v1.4.2
# foghorn 1.4.2

## Other changes

Expand All @@ -40,13 +65,13 @@
`NA` instead of `0.0.0`. (#45, reported by @bastistician)
* Rename internal function to reflect it does not use FTP anymore.

# v1.4.1
# foghorn 1.4.1

## Other changes

* The number of CRAN flavors is now at 14.

# v1.4.0
# foghorn 1.4.0

## Other Changes

Expand All @@ -55,14 +80,14 @@
* The data in the `size` column for the object returned by `cran_incoming()` is
now of type character.

# v1.3.2
# foghorn 1.3.2

## Bug fixes

* The output of `winbuilder_queue()` was always empty following a change to the
content returned by the Win-builder FTP server (#43, reported by @bbolker).

# v1.3.1
# foghorn 1.3.1

## New feature

Expand All @@ -78,15 +103,15 @@
* The argument `progress` was not documented (and not implemented properly) for
`cran_results()` and `cran_details()`.

# v1.2.3
# foghorn 1.2.3

* The number of CRAN check flavors is back to 12.

# v1.2.2
# foghorn 1.2.2

* The number of CRAN check flavors is now 11.

# v1.2.1
# foghorn 1.2.1

* The number of CRAN check flavors is back to 12. A new function
`n_cran_flavors` reads the table on the CRAN website that lists the number of
Expand All @@ -96,16 +121,16 @@
caching) using options, see the help for the `n_cran_flavors()` function for
more information.

# v1.1.5
# foghorn 1.1.5

* internally replaced `as.tibble` with `as_tibble`

# v1.1.4
# foghorn 1.1.4

* The number of CRAN check flavors is now 13. Code and tests have been adjusted
to take this change into account.

# v1.1.3
# foghorn 1.1.3

## New feature

Expand All @@ -123,7 +148,7 @@
(#37 by @jennybc).


# v1.1.0
# foghorn 1.1.0

## New features

Expand All @@ -146,7 +171,7 @@
report that everything was clear (#33, @coatless)


# v1.0.2
# foghorn 1.0.2

## New features

Expand All @@ -164,7 +189,7 @@
* `foghorn` has an hex logo. Thanks to Maëlle Salmon for feedback on initial
design.

# v1.0.1
# foghorn 1.0.1

## New features

Expand All @@ -173,7 +198,7 @@

* `foghorn` is now compatible with R >= 3.1. Suggested by @jimhester, #26.

# v1.0.0
# foghorn 1.0.0

## API changes

Expand Down Expand Up @@ -208,12 +233,12 @@
* Fix bug that would display a number instead of the package name in some
situations.

# v0.4.4
# foghorn 0.4.4

* CRAN has merged memtest notes with a new "other issues" that run valgrind and
other memory issues on multiple platforms/compilers. Therefore, memtest is
renamed "other issues".

# v0.4.2
# foghorn 0.4.2

* initial release on CRAN
14 changes: 7 additions & 7 deletions R/cran_details.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cran_details_from_web <- function(pkg, ...) {
res_idx <- grep("^Result:", p)
flv_idx <- grep("^Flavors?:", p)
if (!identical(length(chk_idx), length(res_idx)) &&
!identical(length(chk_idx), length(flv_idx))) {
!identical(length(chk_idx), length(flv_idx))) {
stop("File an issue on Github indicating the name of your package.")
}
msg <- mapply(function(c, v, r, f) {
Expand Down Expand Up @@ -157,7 +157,7 @@ cran_details_from_crandb <- function(pkg, ...) {
##' check results, the nature of the result (\code{WARN}, \code{ERROR},
##' \code{FAIL}, \code{NOTE}, or other issues).
##' @export
##' @importFrom crayon bold
##' @importFrom cli style_bold
cran_details <- function(pkg, src = c("website", "crandb"),
...) {
if (!is.character(pkg)) {
Expand All @@ -178,13 +178,13 @@ cran_details <- function(pkg, src = c("website", "crandb"),
}


##' @importFrom clisymbols symbol
##' @importFrom cli symbol
render_flavors <- function(x) {
## transform the comma separated list of platform flavors into
## unordered list
if (!is.na(x)) {
res <- unlist(strsplit(x, ", "))
paste(" ", clisymbols::symbol$pointer, res, "\n")
paste(" ", cli::symbol$pointer, res, "\n")
} else {
""
}
Expand Down Expand Up @@ -219,8 +219,8 @@ filter_pkg_ok <- function(res) {
##' @template print_ok
##' @rdname cran_details
##' @export
##' @importFrom crayon green
##' @importFrom clisymbols symbol
##' @importFrom cli col_green
##' @importFrom cli symbol
summary.cran_details <- function(object, show_log = TRUE, print_ok = TRUE, ...) {
res_ok <- filter_pkg_ok(object)

Expand All @@ -245,7 +245,7 @@ summary.cran_details <- function(object, show_log = TRUE, print_ok = TRUE, ...)
cat( ## Type of CRAN message
cmpt$color(paste0(
cmpt$symbol, " ",
crayon::bold(paste0(package, " - ", result)),
cli::style_bold(paste0(package, " - ", result)),
": ", check
)), "\n",
## Flavors concerned
Expand Down
Loading

0 comments on commit 34df3b8

Please sign in to comment.