From d0b54a8fd6dd330933beff3e6017d5111e0df5fb Mon Sep 17 00:00:00 2001 From: Gabor Csardi Date: Wed, 4 May 2016 19:38:42 +0200 Subject: [PATCH] Do not fill in dates in R downloads We would need to fill in OS, version as well, so rather we don't fill in anything. --- R/cranlogs.R | 2 +- inst/NEWS.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/R/cranlogs.R b/R/cranlogs.R index ea7e9b8..dc7156c 100644 --- a/R/cranlogs.R +++ b/R/cranlogs.R @@ -120,7 +120,7 @@ to_df_r <- function(res1) { os = vapply(res1$downloads, "[[", "", "os"), count = vapply(res1$downloads, "[[", 1, "downloads") ) - fill_in_dates(df, as.Date(res1$start), as.Date(res1$end)) + df } fill_in_dates <- function(df, start, end) { diff --git a/inst/NEWS.md b/inst/NEWS.md index 3c95205..fa4fa17 100644 --- a/inst/NEWS.md +++ b/inst/NEWS.md @@ -1,4 +1,8 @@ +# 2.1.1 + +* Fix R download counts if a day is missing data (e.g. 2015-08-23). + # 2.1.0 * Query downloads of R: `cran_downloads("R")`.