Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

default value of "last-day" = today, should point to yesterday #19

Open
sfirke opened this Issue Feb 8, 2017 · 2 comments

Comments

Projects
None yet
3 participants

sfirke commented Feb 8, 2017

When I call cran_downloads() it gives me the data for today, which is always 0 downloads.

library(cranlogs)
cran_downloads()
#>         date count
#> 1 2017-02-08     0

This isn't a problem in when I specify interval = "last-week":

library(cranlogs)
cran_downloads(NULL, "last-week")
#>         date   count
#> 1 2017-02-01 1205129
#> 2 2017-02-02 1139361
#> 3 2017-02-03 1106105
#> 4 2017-02-04  570183
#> 5 2017-02-05  571141
#> 6 2017-02-06 1129596
#> 7 2017-02-07 1253377
Owner

gaborcsardi commented Feb 8, 2017

Yeah.

Breza commented Jun 12, 2017

I was just about to post the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment