Package 'rtrends'

Title: Analyze Download Logs from the CRAN RStudio Mirror
Description: Analyze download logs from the CRAN RStudio mirror (<http://cran.rstudio.com/>). This CRAN mirror is the default one used in RStudio. The available data is the result of parsed and anonymised raw log data from that CRAN mirror.
Authors: Avi Blinder <[email protected]>
Maintainer: Avi Blinder <[email protected]>
License: GPL-2
Version: 0.1.0
Built: 2024-11-05 02:56:07 UTC
Source: https://github.com/aviblinder/rtrends

Help Index


"GeoLite2 Countries List"

Description

This dataset is used for converting countries abbreviations into full names

Usage

data("countries")

Format

geoname_id: geoname_id of location

locale_code: locale_code - factor

continent_code: continent_code - factor

continent_name: continent_name - factor

country_iso_code: country_iso_code - Two letters abbreviation - factor

country_name Full: country name - factor

Source

"http://dev.maxmind.com/geoip/geoip2/geolite2/"

Examples

data(countries)

CRAN Stats for a specific date

Description

Download a full CRAN Log for a specific date

Usage

cran_stats_by_day(Date, cran_log = "http://cran-logs.rstudio.com/")

Arguments

Date

date of CRAN log to be downloaded

cran_log

CRAN mirror name

Value

A dataframe with complete log data of a specific date

Author(s)

Avi Blinder


CRAN Stats for single package

Description

Download CRAN data related to several packages in a range of dates

Usage

cran_stats_by_package(from_date, to_date, sel_package_name,
  cran_log = "http://cran-logs.rstudio.com/")

Arguments

from_date

Starting date for downloading CRAN Repositories

to_date

end date for downloading CRAN Repositories

sel_package_name

Single package name for analysis

cran_log

CRAN mirror name

Author(s)

Avi Blinder


CRAN raw data for several packages in a range of dates

Description

Download CRAN log data related to several packages in a range of dates

Usage

cran_stats_by_packages(from_date, to_date, sel_package_name,
  cran_log = "http://cran-logs.rstudio.com/")

Arguments

from_date

Starting date for downloading CRAN Repositories

to_date

end date for downloading CRAN Repositories

sel_package_name

Single package name for analysis

cran_log

CRAN mirror name

Value

dataframe with log information for selected packages

Author(s)

Avi Blinder


Merge stats with County names

Description

Merge CRAN log data with County names

Usage

cran_summary(cran_log, countries)

Arguments

cran_log

dataftame containing CRAN log data

countries

Countries lookup table data(sample_log) data(countries) cran_summary(sample_log,countries)

Author(s)

Avi Blinder


"Sample Formatted CRAN Log"

Description

This sample formatted log is used as example in this package")

Usage

data("sample_log")

Format

date : chr "2016-11-01" "2016-11-01" "2016-11-01" "2016-11-01" ...

time : chr "19:46:35" "19:47:38" "18:25:28" "18:29:46" ...

size : chr "538958" "283733" "538964" "523" ...

r_version : chr "3.3.2" "NA" "3.3.1" "3.3.1" ...

r_arch : chr "x86_64" "NA" "x86_64" "x86_64" ...

r_os : chr "darwin13.4.0" "NA" "mingw32" "darwin16.0.0" ...

package_name : chr "sparklyr" "sparklyr" "sparklyr" "sparklyr" ...

package_version: chr "0.4" "0.4" "0.4" "0.4" ...

country : chr "HK" "GB" "BR" "US" ...

ip_id : chr "443" "659" "1117" "404" ...

Details

Partial CRAN log data

Source

"http://cran-logs.rstudio.com"

Examples

data(sample_log)