All Projects β†’ fmichonneau β†’ Foghorn

fmichonneau / Foghorn

Licence: other
πŸ“’ 🚒 R package to summarize CRAN Check Results in the Terminal

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Foghorn

Ggrepel
πŸ“ Repel overlapping text labels away from each other.
Stars: ✭ 853 (+1540.38%)
Mutual labels:  cran
Configr
Implements the JSON, INI, YAML and TOML parser, for R setting and writing of configuration file.
Stars: ✭ 38 (-26.92%)
Mutual labels:  cran
Beetle
Shake to create Bug Report on GitHub, GitLab and Azure DevOps!
Stars: ✭ 45 (-13.46%)
Mutual labels:  feedback
Rfcs
RFCs for changes to DevTools
Stars: ✭ 12 (-76.92%)
Mutual labels:  feedback
Jquery.tabslideout.js
jQuery plugin to create a side/top/bottom tab that slides out to show a feedback form, contact form, notepad etc.
Stars: ✭ 35 (-32.69%)
Mutual labels:  feedback
Intrval
Relational Operators for Intervals
Stars: ✭ 41 (-21.15%)
Mutual labels:  cran
Stream
A framework for data stream modeling and associated data mining tasks such as clustering and classification. - R Package
Stars: ✭ 23 (-55.77%)
Mutual labels:  cran
Blavaan
An R package for Bayesian structural equation modeling
Stars: ✭ 51 (-1.92%)
Mutual labels:  cran
Paralleldist
R Package: Parallel Distance Matrix Computation using Multiple Threads
Stars: ✭ 37 (-28.85%)
Mutual labels:  cran
Liger
Lightweight Iterative Gene set Enrichment in R
Stars: ✭ 44 (-15.38%)
Mutual labels:  cran
Feedback
πŸ“£ We love feedback ✨
Stars: ✭ 15 (-71.15%)
Mutual labels:  feedback
Rcppexamples
Examples of using Rcpp to interface R and C++
Stars: ✭ 33 (-36.54%)
Mutual labels:  cran
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (+1850%)
Mutual labels:  feedback
Astuto
A free, open source, self-hosted customer feedback tool 🦊
Stars: ✭ 860 (+1553.85%)
Mutual labels:  feedback
Labelled
Manipulating labelled vectors in R
Stars: ✭ 45 (-13.46%)
Mutual labels:  cran
Scottknottesd
The Scott-Knott Effect Size Difference (ESD) test
Stars: ✭ 8 (-84.62%)
Mutual labels:  cran
Nanotime
Nanosecond Resolution Time Functionality for R
Stars: ✭ 39 (-25%)
Mutual labels:  cran
Feedmereadmes
Free README editing+feedback to make your open-source projects grow. See the README maturity model to help you keep going.
Stars: ✭ 1,064 (+1946.15%)
Mutual labels:  feedback
Seurat
R toolkit for single cell genomics
Stars: ✭ 1,053 (+1925%)
Mutual labels:  cran
Fpp3 Package
All data sets required for the examples and exercises in the book "Forecasting: principles and practice" (3rd ed, 2020) by Rob J Hyndman and George Athanasopoulos <http://OTexts.org/fpp3/>. All packages required to run the examples are also loaded.
Stars: ✭ 43 (-17.31%)
Mutual labels:  cran

R-CMD-check AppVeyor Build Status Coverage Status CRAN version CRAN RStudio mirror downloads

foghorn

foghorn noun
1. Device used to facilitate navigation in foggy conditions by warning of potential hazards ahead.

foghorn makes accessible to the R terminal the CRAN check results for packages maintained by individuals, or for other packages of interest. The results are presented as a colored summary, or as a tibble. The function that generates the summary is designed to be called from your .Rprofile so you can check on the status of the packages regularly.

As new features are introduced in development versions of R, or new policies are put in place, packages that are not updated frequently may start generating warnings or errors when checked on CRAN’s infrastructure. foghorn brings this information to your terminal so you don’t have to leave the comfort of your R session to know the results of the CRAN checks for your packages.

Installation

You can install the development version of foghorn from github with:

remotes::install_github("fmichonneau/foghorn")

or the stable version from CRAN:

install.packages("foghorn")

Demonstration

## load the package
library(foghorn)

foghorn provides the results of the package CRAN checks. As a maintainer, you can easily get the results of the checks for your packages by using the email address included in the DESCRIPTION file of your packages.

summary_cran_results() provides you with a graphical summary of the results of the CRAN checks. The number in parenthesis after the name of the package indicates the number of platforms used by CRAN that produced this result.

## Graphical interface
summary_cran_results(email = "[email protected]")
#> βœ” All clear for foghorn, riceware, rotl!
#> β˜…  Packages with notes on CRAN: 
#>   - phylobase (1)
#>   - rncl (3)

summary_cran_results() is actually an alias of summary(cran_results()), meaning that you can call cran_results() directly if you want to easily access the underlying data for the results of the CRAN checks. These results are stored in a tibble.

## Results of the checks as a tibble
cran_results(email = "[email protected]")
#> # A tibble: 5 x 7
#>   package   error  fail  warn  note    ok has_other_issues
#>   <chr>     <int> <int> <int> <int> <int> <lgl>           
#> 1 foghorn       0     0     0     0    12 FALSE           
#> 2 phylobase     0     0     0     1    11 FALSE           
#> 3 riceware      0     0     0     0    12 FALSE           
#> 4 rncl          0     0     0     3     9 FALSE           
#> 5 rotl          0     0     0     0    12 FALSE

In addition of your own packages, you can also check the results for any other packages that might be of interest to you:

## either by themselves
summary_cran_results(pkg = c("ggplot2", "dplyr"))
#> β˜…  Packages with notes on CRAN: 
#>   - dplyr (5)
#>   - ggplot2 (5)

cran_results(pkg = c("ggplot2", "dplyr"))
#> # A tibble: 2 x 7
#>   package error  fail  warn  note    ok has_other_issues
#>   <chr>   <int> <int> <int> <int> <int> <lgl>           
#> 1 dplyr       0     0     0     5     7 FALSE           
#> 2 ggplot2     0     0     0     5     7 FALSE

## or by combining them with email addresses
summary_cran_results(
  email = "[email protected]",
  pkg = c("mregions", "ridigbio")
)
#> βœ” All clear for foghorn, mregions, riceware, ridigbio, rotl!
#> β˜…  Packages with notes on CRAN: 
#>   - phylobase (1)
#>   - rncl (3)

cran_results(
  email = "[email protected]",
  pkg = c("mregions", "ridigbio")
)
#> # A tibble: 7 x 7
#>   package   error  fail  warn  note    ok has_other_issues
#>   <chr>     <int> <int> <int> <int> <int> <lgl>           
#> 1 foghorn       0     0     0     0    12 FALSE           
#> 2 mregions      0     0     0     0    12 FALSE           
#> 3 phylobase     0     0     0     1    11 FALSE           
#> 4 riceware      0     0     0     0    12 FALSE           
#> 5 ridigbio      0     0     0     0    12 FALSE           
#> 6 rncl          0     0     0     3     9 FALSE           
#> 7 rotl          0     0     0     0    12 FALSE

You can inspect the logs for the check results using summary_cran_details(pkg) (or summary(cran_details(pkg))), while visit_cran_check(pkg) takes you directly to the CRAN webpage.

(tidyr_checks <- cran_details(pkg = "tidyr"))
#> # A tibble: 1 x 7
#>   package version result check      flavors              n_flavors message      
#>   <chr>   <chr>   <chr>  <chr>      <chr>                    <dbl> <chr>        
#> 1 tidyr   1.1.2   NOTE   data for … r-devel-linux-x86_6…         5 "     Note: …
summary(tidyr_checks)
#> β˜… tidyr - note: data for non-ASCII characters
#>    ❯ r-devel-linux-x86_64-fedora-clang 
#>    ❯ r-devel-linux-x86_64-fedora-gcc 
#>    ❯ r-patched-solaris-x86 
#>    ❯ r-release-macos-x86_64 
#>    ❯ r-oldrel-macos-x86_64 
#> 
#>      Note: found 24 marked UTF-8 strings

Where does the data come from?

The data from the check results used by this package are either scraped from the CRAN web pages (default), or are from the CRAN database (that CRAN uses to build the webpages). The first option is faster if you want to regularly check a few packages. However, if you are doing statistics on a large number of packages, using the CRAN database is recommended (it’s about 20Mb of data). To use the CRAN database, add src = "crandb" in your function calls:

cran_results(pkg = "nlme", src = "crandb", progress = FALSE)
#> # A tibble: 1 x 7
#>   package error  fail  warn  note    ok has_other_issues
#>   <chr>   <int> <int> <int> <int> <int> <lgl>           
#> 1 nlme        0     0     0     0    12 FALSE

Check out the β€œDetails” section in the help files for more information.

Feedback? Suggestions?

Feel free to submit feedback and suggestions by opening an issue on GitHub.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].