Learn R Programming

installr (version 0.10.1)

read_RStudio_CRAN_data: Reads RStudio CRAN mirror data files from a folder

Description

This function reads files downloaded from the downlaod page (http://cran-logs.rstudio.com/). This function relies on data.table to run faster. WARNING: this function can be quite slow...

Usage

read_RStudio_CRAN_data(log_folder = tempdir(),
    use_data_table = TRUE, ...)

Arguments

log_folder
the folder which contains the RStudio CRAN log files that were downloaded to. Default is the temporary folder picked by tempdir.
use_data_table
default is TRUE. A switch for wether or not to use thte data.table pacakge in order to merge the log files using rbindlist. This function is MUCH faster then the alternative.
...
not in use.

Value

  • Returns the combined data file.

source

http://www.nicebread.de/finally-tracking-cran-packages-downloads/

Details

RStudio maintains its own CRAN mirror, http://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
# 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)

# barplots: (more functions can easily be added in the future)
barplot_package_users_per_day("installr", my_RStudio_CRAN_data)
barplot_package_users_per_day("plyr", my_RStudio_CRAN_data)

Run the code above in your browser using DataLab