r-hub / cranlogs

Download Logs from the RStudio CRAN Mirror
https://r-hub.github.io/cranlogs/
Other
80 stars 13 forks source link

row names for 0 counts #21

Closed ghost closed 5 years ago

ghost commented 7 years ago

There are some occasions where the count is 0 but it seems implausible. Maybe this is due to the server being offline this day. Whatever caused the 0, the row names for that row are not in sequence after that date anymore, see below:

b <- cranlogs::cran_downloads(from="2016-01-01", to="2016-12-31", packages = c("ggplot2"))

head(b, 35)
          date count package
1   2016-01-01  2822 ggplot2
2   2016-01-02  3135 ggplot2
3   2016-01-03  3124 ggplot2
4   2016-01-04  7788 ggplot2
5   2016-01-05  7669 ggplot2
6   2016-01-06  8144 ggplot2
7   2016-01-07  8405 ggplot2
8   2016-01-08  7641 ggplot2
9   2016-01-09  4170 ggplot2
10  2016-01-10  4103 ggplot2
11  2016-01-11  8640 ggplot2
12  2016-01-12  9702 ggplot2
13  2016-01-13  9255 ggplot2
14  2016-01-14  8894 ggplot2
15  2016-01-15  8146 ggplot2
16  2016-01-16  5411 ggplot2
17  2016-01-17  4577 ggplot2
18  2016-01-18  8759 ggplot2
19  2016-01-19  9553 ggplot2
20  2016-01-20 10585 ggplot2
21  2016-01-21 10023 ggplot2
22  2016-01-22  8350 ggplot2
23  2016-01-23  4690 ggplot2
24  2016-01-24  5263 ggplot2
25  2016-01-25 10046 ggplot2
26  2016-01-26  9741 ggplot2
27  2016-01-27 10819 ggplot2
28  2016-01-28 10622 ggplot2
29  2016-01-29  9362 ggplot2
30  2016-01-30  4389 ggplot2
31  2016-01-31  4951 ggplot2
32  2016-02-01  9863 ggplot2
33  2016-02-02 10677 ggplot2
355 2016-02-03     0 ggplot2
34  2016-02-04 10036 ggplot2
maelle commented 5 years ago

This was fixed (maybe by #23?)

b <- cranlogs::cran_downloads(from="2016-01-01", to="2016-12-31", packages = c("ggplot2"))

head(b, 35)
#>          date count package
#> 1  2016-01-01  2822 ggplot2
#> 2  2016-01-02  3135 ggplot2
#> 3  2016-01-03  3124 ggplot2
#> 4  2016-01-04  7788 ggplot2
#> 5  2016-01-05  7669 ggplot2
#> 6  2016-01-06  8144 ggplot2
#> 7  2016-01-07  8405 ggplot2
#> 8  2016-01-08  7641 ggplot2
#> 9  2016-01-09  4170 ggplot2
#> 10 2016-01-10  4103 ggplot2
#> 11 2016-01-11  8640 ggplot2
#> 12 2016-01-12  9702 ggplot2
#> 13 2016-01-13  9255 ggplot2
#> 14 2016-01-14  8894 ggplot2
#> 15 2016-01-15  8146 ggplot2
#> 16 2016-01-16  5411 ggplot2
#> 17 2016-01-17  4577 ggplot2
#> 18 2016-01-18  8759 ggplot2
#> 19 2016-01-19  9553 ggplot2
#> 20 2016-01-20 10585 ggplot2
#> 21 2016-01-21 10023 ggplot2
#> 22 2016-01-22  8350 ggplot2
#> 23 2016-01-23  4690 ggplot2
#> 24 2016-01-24  5263 ggplot2
#> 25 2016-01-25 10046 ggplot2
#> 26 2016-01-26  9741 ggplot2
#> 27 2016-01-27 10819 ggplot2
#> 28 2016-01-28 10622 ggplot2
#> 29 2016-01-29  9362 ggplot2
#> 30 2016-01-30  4389 ggplot2
#> 31 2016-01-31  4951 ggplot2
#> 32 2016-02-01  9863 ggplot2
#> 33 2016-02-02 10677 ggplot2
#> 34 2016-02-03     0 ggplot2
#> 35 2016-02-04 10036 ggplot2

Created on 2019-04-11 by the reprex package (v0.2.1)

Session info ``` r devtools::session_info() #> ─ Session info ────────────────────────────────────────────────────────── #> setting value #> version R version 3.5.3 (2019-03-11) #> os Ubuntu 18.04.2 LTS #> system x86_64, linux-gnu #> ui X11 #> language en_US #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz Europe/Paris #> date 2019-04-11 #> #> ─ Packages ────────────────────────────────────────────────────────────── #> package * version date lib source #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.5.3) #> backports 1.1.3 2018-12-14 [1] CRAN (R 3.5.3) #> callr 3.2.0 2019-03-15 [1] CRAN (R 3.5.3) #> cli 1.1.0 2019-03-19 [1] CRAN (R 3.5.3) #> cranlogs 2.1.1.900 2019-04-11 [1] local #> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.3) #> curl 3.3 2019-01-10 [1] CRAN (R 3.5.3) #> desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.3) #> devtools 2.0.2 2019-04-08 [1] CRAN (R 3.5.3) #> digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.3) #> evaluate 0.13 2019-02-12 [1] CRAN (R 3.5.3) #> fs 1.2.7 2019-03-19 [1] CRAN (R 3.5.3) #> glue 1.3.1 2019-03-12 [1] CRAN (R 3.5.3) #> highr 0.8 2019-03-20 [1] CRAN (R 3.5.3) #> htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.3) #> httr 1.4.0 2018-12-11 [1] CRAN (R 3.5.3) #> jsonlite 1.6 2018-12-07 [1] CRAN (R 3.5.3) #> knitr 1.22 2019-03-08 [1] CRAN (R 3.5.3) #> magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.3) #> memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.3) #> pkgbuild 1.0.3 2019-03-20 [1] CRAN (R 3.5.3) #> pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.5.3) #> prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.3) #> processx 3.3.0 2019-03-10 [1] CRAN (R 3.5.3) #> ps 1.3.0 2018-12-21 [1] CRAN (R 3.5.3) #> R6 2.4.0 2019-02-14 [1] CRAN (R 3.5.3) #> Rcpp 1.0.1 2019-03-17 [1] CRAN (R 3.5.3) #> remotes 2.0.3 2019-04-09 [1] CRAN (R 3.5.3) #> rlang 0.3.4 2019-04-07 [1] CRAN (R 3.5.3) #> rmarkdown 1.12 2019-03-14 [1] CRAN (R 3.5.3) #> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.3) #> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.3) #> stringi 1.4.3 2019-03-12 [1] CRAN (R 3.5.3) #> stringr 1.4.0 2019-02-10 [1] CRAN (R 3.5.3) #> usethis 1.5.0 2019-04-07 [1] CRAN (R 3.5.3) #> withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.3) #> xfun 0.6 2019-04-02 [1] CRAN (R 3.5.3) #> yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.3) #> #> [1] /home/maelle/R/x86_64-pc-linux-gnu-library/3.5 #> [2] /usr/local/lib/R/site-library #> [3] /usr/lib/R/site-library #> [4] /usr/lib/R/library ```
maelle commented 5 years ago

@gaborcsardi should the docs contain some context for the 0s? I.e. what can cause them?

gaborcsardi commented 5 years ago

data is not available on the rstudio server for that day.