Closed sscogges closed 5 years ago
related to #19 I think?
Related to #19, and now fixed, both argument values will now return data until the last day for which data is available.
cranlogs::cran_downloads(when = "last-day", package = "ggplot2")
#> date count package
#> 1 2019-04-09 38956 ggplot2
cranlogs::cran_downloads(when = "last-week", package = "ggplot2")
#> date count package
#> 1 2019-04-03 31342 ggplot2
#> 2 2019-04-04 31295 ggplot2
#> 3 2019-04-05 26908 ggplot2
#> 4 2019-04-06 14608 ggplot2
#> 5 2019-04-07 20784 ggplot2
#> 6 2019-04-08 40686 ggplot2
#> 7 2019-04-09 38956 ggplot2
Created on 2019-04-11 by the reprex package (v0.2.1)
When using cran_downloads() just now I get the following behavior:
cran_downloads(when = "last-day", package = "ggplot2") # date count package # 1 2017-09-02 0 ggplot2
cran_downloads(when = "last-week", package = "ggplot2") # date count package # 1 2017-08-25 10056 ggplot2 # 2 2017-08-26 5554 ggplot2 # 3 2017-08-27 4916 ggplot2 # 4 2017-08-28 12029 ggplot2 # 5 2017-08-29 13470 ggplot2 # 6 2017-08-30 14024 ggplot2 # 7 2017-08-31 14205 ggplot2
I was expecting "last-week" to include Sept 1, but it was skipped over. Is this the intended behavior or is it a bug?