package_downloads: Download package counts

Description Usage Arguments Details Value Examples

Description

Download package counts

Usage

1
2
package_downloads(packages = c("tableHTML", "RDota2", "colf"),
  when = "last-month", from, to)

Arguments

packages

packages to count downloads.

when

last_day, last_week or last_month. If this is given, then from and to are ignored.

from

Start date, in yyyy-mm-dd format, or last-day. It is ignored if when is given.

to

End date, in yyyy-mm-dd format, or last-day. It is ignored if when is given.

Details

package_downloads will download the number of downloads of the specified packages and also format the table nicely.

Value

A data.table with the package downloads. Each package will be a column.

Examples

1
package_downloads(c('tableHTML', 'RDota2', 'colf'), 'last-week')

LyzandeR/D2DF documentation built on May 8, 2019, 3:16 p.m.