knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of checkinfo
is to surface CRAN
checks information into a sessioninfo output specific to the user's platform.
# install.packages("remotes") remotes::install_github("yonicd/craninfo")
This is a basic example which shows you how to solve a common problem:
library(craninfo)
On CRAN each package is continually checked to see if there are any problems with it on a variety of platforms and this information is always available for package users to view.
cchecks is an R package that uses an API to retrieve information from these tests in an efficient manner.
Here is the output from dplyr
(cchecks::cch_pkgs('dplyr'))$data$checks
What if you wanted to use this same information to create an output similar to sessioninfo, but append to it the information from the current CRAN checks for each loaded namespace (package) tailored to your platform.
This is what craninfo
does for you!
With this information you can
craninfo()
craninfo(cran_type = c('release','oldrel'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.