| Type: | Package | 
| Title: | Remove Automated and Repeated Downloads from 'RStudio' 'CRAN' Download Logs | 
| Version: | 0.1.0 | 
| Date: | 2017-11-22 | 
| Description: | Adjusts output of 'cranlogs' package to account for 'CRAN'-wide daily automated downloads and re-downloads caused by package updates. | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| RoxygenNote: | 6.0.1 | 
| Imports: | cranlogs, xml2, lubridate, dplyr, rvest | 
| Depends: | R (≥ 2.10) | 
| URL: | https://github.com/tylermorganwall/adjustedcranlogs | 
| BugReports: | https://github.com/tylermorganwall/adjustedcranlogs/issues | 
| NeedsCompilation: | no | 
| Packaged: | 2017-11-22 22:20:56 UTC; tyler | 
| Author: | Tyler Morgan-Wall [aut, cre] | 
| Maintainer: | Tyler Morgan-Wall <tylermw@gmail.com> | 
| Repository: | CRAN | 
| Date/Publication: | 2017-11-23 12:35:35 UTC | 
Adjusted Cran Downloads
Description
Removes daily shared downloads amongst CRAN packages and re-download/CRAN mirror spikes associated with package updates.
Usage
adj_cran_downloads(packages, when, from, to, removeupdatespikes = TRUE,
  numbercomparison = 100, packagequantile = 0.05)
Arguments
| packages | A character vector, the packages to query. | 
| when | 
 | 
| from | Start date, in  | 
| to | End date, in  | 
| removeupdatespikes | Default TRUE. Removes the spike in downloads due to automatic re-downloads and CRAN mirrors associated with a package update. Replaces value with the median download value across the measurement period. | 
| numbercomparison | Default 100. The number of random packages to inspect to determine the minimum number of downloads in any single day. | 
| packagequantile | Default 0.05. The quantile defining the "minimum" number of downloads on a single day. | 
Value
A data frame of downloads and total downloads by package.
| date | Day of the downloads, it is a Date object. | 
| package | The package. This column is missing if all packages were queried. | 
| count | Raw download count. | 
| total_downloads | Raw total number of downloads from beginning of measurement period. | 
| mindownloads | Estimated CRAN-wide automated downloads for that day. | 
| updateday | TRUE if the package was updated that day, FALSE otherwise. | 
| adjusted_downloads | Daily download count, adjusted. | 
| adjusted_total_downloads | Adjusted total number of downloads from beginning of measurement period. | 
Examples
## Not run: adj_cran_downloads("skpr",from="2017-08-15",to="2017-11-15")
adj_cran_downloads("skpr",when="last-month")
adj_cran_downloads(c("skpr","AlgDesign"),when="last-month")
## End(Not run)