read_logs: Read CRAN Download Logs

Description Usage Arguments Examples

Description

foo

Usage

1

Arguments

start

a Date object indicating the start of the range to read. Defaults to the day before yesterday; CRAN logs are updated on a one-day lag and a two-day lag allows for timezone differences.

end

a Date object indicating the end of the range to read. Defaults to NULL, in which case 'start' will be taken as the only date to read for.

Examples

1
2
3
4
5
6
7
8
# Read a single day's logs from 5 days ago.
data <- read_logs(start = Sys.Date() - 5)

# Read everything between 5 July and 10 July
## Not run: 
data <- read_logs(start = as.Date("2015-07-05"), end = as.Date("2015-07-10"))

## End(Not run)

Ironholds/cranlog documentation built on May 8, 2019, 1:28 p.m.