Learn R Programming

installr (version 0.22.0)

most_downloaded_packages: Most downloaded packages

Description

Gives the top "x" most downloaded packages.

Usage

most_downloaded_packages(dataset, n = 6L, ...)

Arguments

dataset

a dataset output from running read_RStudio_CRAN_data, after going through format_RStudio_CRAN_data.

n

the number of top packages to show.

...

not in use.

Value

a table of top packages by downloads (a numeric vector with packages as names)

Details

RStudio maintains its own CRAN mirror, https://cran.rstudio.com/ and offers its log files.

See Also

download_RStudio_CRAN_data, read_RStudio_CRAN_data,barplot_package_users_per_day

Examples

Run this code
# NOT RUN {
# The first two functions might take a good deal of time to run (depending on the date range)
RStudio_CRAN_data_folder <- 
      download_RStudio_CRAN_data(START = '2013-04-02',
                                 END = '2013-04-05') 
                                 # around the time R 3.0.0 was released
my_RStudio_CRAN_data <- read_RStudio_CRAN_data(RStudio_CRAN_data_folder)
my_RStudio_CRAN_data <- format_RStudio_CRAN_data(my_RStudio_CRAN_data)
head(my_RStudio_CRAN_data)
most_downloaded_packages(my_RStudio_CRAN_data)

top_packages <- names(most_downloaded_packages(my_RStudio_CRAN_data))
lineplot_package_downloads(pkg_names = top_packages, dataset = my_RStudio_CRAN_data)

# }

Run the code above in your browser using DataLab