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 |
This dataset is used for converting countries abbreviations into full names
data("countries")
data("countries")
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
"http://dev.maxmind.com/geoip/geoip2/geolite2/"
data(countries)
data(countries)
Download a full CRAN Log for a specific date
cran_stats_by_day(Date, cran_log = "http://cran-logs.rstudio.com/")
cran_stats_by_day(Date, cran_log = "http://cran-logs.rstudio.com/")
Date |
date of CRAN log to be downloaded |
cran_log |
CRAN mirror name |
A dataframe with complete log data of a specific date
Avi Blinder
Download CRAN data related to several packages in a range of dates
cran_stats_by_package(from_date, to_date, sel_package_name, cran_log = "http://cran-logs.rstudio.com/")
cran_stats_by_package(from_date, to_date, sel_package_name, cran_log = "http://cran-logs.rstudio.com/")
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 |
Avi Blinder
Download CRAN log data related to several packages in a range of dates
cran_stats_by_packages(from_date, to_date, sel_package_name, cran_log = "http://cran-logs.rstudio.com/")
cran_stats_by_packages(from_date, to_date, sel_package_name, cran_log = "http://cran-logs.rstudio.com/")
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 |
dataframe with log information for selected packages
Avi Blinder
Merge CRAN log data with County names
cran_summary(cran_log, countries)
cran_summary(cran_log, countries)
cran_log |
dataftame containing CRAN log data |
countries |
Countries lookup table data(sample_log) data(countries) cran_summary(sample_log,countries) |
Avi Blinder
This sample formatted log is used as example in this package")
data("sample_log")
data("sample_log")
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" ...
Partial CRAN log data
"http://cran-logs.rstudio.com"
data(sample_log)
data(sample_log)