Site icon R-bloggers

Foghorn package – find out pending CRAN packages in the pipeline

[This article was first published on R Blogs – Hutsons-hacks, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I have recently just pushed my fourth package to CRAN, I will do a separate post on this, but the FeatureTerminatoR package has been built to perform automated feature selection, utilising methods such as recursive partitioning, multicollinearity purging and other types will be built into the second version.

Installing the package

The package currently resides in Github and you will need to use the remotes package to pull it down into your local project:

#install.packages("remotes")
remotes::install_github("fmichonneau/foghorn")
library(foghorn)

This will bring down the package from GitHub, and then you can load the package into your environment using foghorn.

Using the package

The main driver of the package is cran_incoming() function. To use the function you can implement it as below:

cran_incoming(
  pkg = NULL,
  folders = c("newbies", "inspect", "pretest", "recheck", "pending", "publish",
              "archive", "waiting")
)

To break this down:

Source: CRAN Incoming Dashboard

Outputs from the package

The package returns a tibble of the current packages, dependent on where they are in the above pipeline:

You could then filter these by the relevant CRAN folder. Another way to do it would be to pass the specific package name into the pkg parameter in the cran_incoming function.

To leave a comment for the author, please follow the link and comment on their blog: R Blogs – Hutsons-hacks.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.