Skip to contents

This function reports download statistics for easystats packages from CRAN through the cranlogs package.

Usage

easystats_downloads(from = "2019-02-26", sort_by = "total", length = 30)

Arguments

from

Starting date for the download statistics. Defaults to "2019-02-26", which is when the first easystats package was released on CRAN.

sort_by

Name of the column that should be used for sorting. Can be "package", "total", or "monthly". Use NULL for no sorting. Defaults to "total" (total downloads).

length

Numeric, maximum length of the returned string. If not NULL, will shorten the string to a maximum length, however, it will not truncate inside words. I.e. if the string length happens to be inside a word, this word is removed from the returned string, so the returned string has a maximum length of length, but might be shorter.

Value

A data frame with three columns: package, total downloads, and average monthly downloads.

Examples

# \dontrun{
easystats_downloads()
#> Package     |      Total | Monthly
#> ----------------------------------
#> insight     |  8,990,432 | 113,803
#> datawizard  |  5,829,371 | 112,103
#> parameters  |  3,896,458 |  52,655
#> performance |  3,886,311 |  49,824
#> bayestestR  |  3,790,701 |  48,599
#> effectsize  |  2,913,287 |  41,032
#> correlation |  1,079,874 |  16,118
#> see         |    852,593 |  11,073
#> modelbased  |    584,920 |   8,477
#> report      |    302,690 |   5,605
#> easystats   |    124,834 |   3,285
#> Total       | 32,251,471 | 462,574
# }