The goal of ozcran is to check the status and packages available from Australian CRAN mirrors.
You can install the development version from GitHub with:
# install.packages("remotes")
remotes::install_github("mdsumner/ozcran")
This is a basic example which gets the package list from Australian CRAN mirrors and provides a quick summary.
library(ozcran)
library(dplyr)
db <- oz_db()
dim(db)
#> [1] 87487 65
db
now is a data frame with lots of fields about every package, and
reflects the status of at least five online mirrors. The mirror itself
is named in the repos
column.
Group by repository and find a summary of currency and number of packages.
db %>% group_by(repos) %>%
summarize(n = n(), date = max(as.Date(Published), na.rm = TRUE)) %>%
arrange(desc(date))
#> # A tibble: 6 x 3
#> repos n date
#> <chr> <int> <date>
#> 1 aws 14594 2019-07-22
#> 2 private 14594 2019-07-22
#> 3 curtin 14594 2019-07-21
#> 4 aarnet 14569 2019-07-15
#> 5 csiro 14569 2019-07-15
#> 6 unimelb 14567 2019-07-15
We can also compare to the source CRAN mirror that is in Austria (no kangaroos).
oz_db(include_cran = TRUE) %>% group_by(repos) %>%
summarize(n = n(), date = max(as.Date(Published), na.rm = TRUE)) %>%
arrange(desc(date))
#> # A tibble: 7 x 3
#> repos n date
#> <chr> <int> <date>
#> 1 aws 14594 2019-07-22
#> 2 cran 14594 2019-07-22
#> 3 private 14594 2019-07-22
#> 4 curtin 14594 2019-07-21
#> 5 aarnet 14569 2019-07-15
#> 6 csiro 14569 2019-07-15
#> 7 unimelb 14567 2019-07-15
Please note that the ‘ozcran’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.