Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (86 sloc) 3.55 KB
---
title: "CRAN incoming dashboard"
date: "`r format(Sys.time(), '%F %R UTC%z')`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Vignette Title}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
warning = FALSE,
message = FALSE,
echo = FALSE
)
```
The data in this table stems from our querying ftp://cran.r-project.org/incoming/.
We update it every hour. [See below](#explanation) for a description of each
folder meaning.
# Dashboard
```{r get-data}
cran_incoming <- cransays::take_snapshot()
cran_incoming$submitted <- glue::glue("{cran_incoming$howlongago} day(s) ago")
cran_incoming <- dplyr::arrange(cran_incoming,
subfolder,
howlongago)
cran_incoming <- dplyr::filter(cran_incoming,
subfolder != "archive")
cran_incoming <- dplyr::mutate(cran_incoming,
folder = ifelse(
subfolder %in% c("pretest", "inspect",
"recheck",
"pending", "publish",
"newbies", "waiting"),
subfolder, "human"
))
library("magrittr")
cran_incoming <- dplyr::select(cran_incoming,
package, version, submitted, folder, subfolder) %>%
dplyr::mutate(folder = as.factor(folder),
subfolder = as.factor(subfolder))
```
```{r}
library("magrittr")
DT::datatable(cran_incoming,
options = list(pageLength = 500,
columnDefs = list(list(type = 'natural',
targets = 3))),
filter = "top",
plugins = "natural") %>% DT::formatStyle(
'folder',
target = "row",
backgroundColor = DT::styleEqual(c("pretest", "inspect",
"recheck", "human",
"pending", "publish",
"waiting", "newbies"),
c("#2165b6", "#e8830c",
"#3cb4b8", "#cf4729",
"#34ba17", "#c04aa9",
"#4d4d4d", "fff")))
```
# <a name="explanation"></a>CRAN review workflow
Your package will be stored in a different folder depending on its current state
in the review process. The exact meaning of each folder is detailed in one
article from the
[R Journal](https://journal.r-project.org/archive/2018-1/cran.pdf):
- **inspect**: this is your first submission or the automated tests found an
error that requires human review.
- **pending**: the CRAN maintainers are waiting for an action on your side. You
should check your emails!
- **pretest**: the CRAN maintainers restarted automated tests on your package to
see whether an issue has been fixed by your action or is still here.
- **recheck**: your package seems ready for publication. This step checks
whether reverse dependencies will still work after the update.
- **publish**: you're all set! Your package has passed the review process and
will soon be available on CRAN.
This information is summarised in the following diagram by Hadley Wickham,
available in the [cran-stages Github](https://github.com/edgararuiz/cran-stages)
repository:
```{r, out.width="50%", fig.align='center'}
knitr::include_graphics("cran-diagram.png")
```
# Need help with your R package?
Get in touch with us about how we at Locke Data can help you get your package CRAN ready. Fill out [our contact page](//itsalocke.com/#contact).
You can’t perform that action at this time.