A data package which lists every command in base R packages since R version 1.0.1.
The latest R version covered is 4.3.1.
You can view the data online in a Shiny app.
From r-universe:
install.packages('rcheology', repos = c('https://hughjonesd.r-universe.dev',
'https://cloud.r-project.org'))
From CRAN:
install.packages('rcheology')
Versions 4.2.1 and up are installed from the CRAN apt repositories for Ubuntu Focal.
Versions 4.0.0 to 4.2.0 are installed from the CRAN apt repositories for Ubuntu Bionic.
Versions 3.0.1 to 3.6.3 are installed from the CRAN apt repositories for Ubuntu Trusty Tahr. Version 3.5.0 and up use a special repository.
Versions 2.5.1 to 3.0.0 are built from source on Ubuntu Lucid Lynx.
Versions 1.2.3 to 2.4.1 are mostly built from source on Debian Sarge.
Versions 1.0.1 to 1.2.2 (and a couple of later versions) are built from source on Debian Woody.
Results are found from running ls(all.names = TRUE)
on
all installed packages from a minimal installation. For more details,
see list-objects.R
.
Recommended packages are not included.
The Rversions
data frame lists versions of R and release
dates.
./control build
builds the images. Or get them from https://hub.docker.com/r/dash2/rcheology/../control run
runs the images to build/install R and
extract data./control gather
gets CSV files from the
containers./control write
puts CSV files into a data frame and
stores it in the packagelibrary(rcheology)
data("rcheology")
$name == "kmeans" & rcheology$Rversion %in% c("1.0.1", "1.9.0", "2.1.0", "3.0.2", "3.2.0", "4.0.2"), ]
rcheology[rcheology#> package name Rversion type exported class generic
#> 216706 mva kmeans 1.0.1 closure TRUE <NA> FALSE
#> 237563 stats kmeans 1.9.0 closure TRUE function FALSE
#> 237567 stats kmeans 2.1.0 closure TRUE function FALSE
#> 237606 stats kmeans 3.0.2 closure TRUE function FALSE
#> 237611 stats kmeans 3.2.0 closure TRUE function FALSE
#> args
#> 216706 (x, centers, iter.max = 10)
#> 237563 (x, centers, iter.max = 10)
#> 237567 (x, centers, iter.max = 10, nstart = 1, algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"))
#> 237606 (x, centers, iter.max = 10, nstart = 1, algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"), trace = FALSE)
#> 237611 (x, centers, iter.max = 10L, nstart = 1L, algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"), trace = FALSE)
#> [ reached 'max' / getOption("max.print") -- omitted 1 rows ]
Latest changes:
suppressPackageStartupMessages(library(dplyr))
<- sort(package_version(unique(rcheology::rcheology$Rversion)),
r_penultimate decreasing = TRUE)
<- r_penultimate[2]
r_penultimate
<- rcheology %>% dplyr::filter(Rversion == r_latest)
r_latest_obj <- rcheology %>% dplyr::filter(Rversion == r_penultimate)
r_penult_obj
<- anti_join(r_latest_obj, r_penult_obj, by = c("package", "name"))
r_introduced
r_introduced#> [1] package name Rversion type exported class generic args
#> <0 rows> (or 0-length row.names)
Base functions over time:
library(ggplot2)
<- rcheology$Rversion %>%
rvs unique() %>%
as.package_version() %>%
sort() %>%
as.character()
<- grep(".0$", rvs, value = TRUE)
major_rvs <- Rversions$date[Rversions$Rversion %in% major_rvs]
major_rv_dates <- gsub("\\.0$", "", major_rvs)
major_rvs
<- rcheology %>% left_join(Rversions, by = "Rversion")
rch_dates ggplot(rch_dates, aes(date, group = package, fill = package), colour = NA) +
stat_count(geom = "area") +
theme(axis.text.x = element_text(angle = 45, hjust = 1, size = 8)) +
# ggthemes::scale_fill_gdocs() +
scale_x_date(breaks = major_rv_dates, labels = major_rvs) +
xlab("Version") + ylab("Function count") +
theme(legend.position = "top")
#> Warning: Removed 3498 rows containing non-finite values (`stat_count()`).
An alternative view:
ggplot(rch_dates, aes(date, fill = "orange")) +
stat_count(geom = "area") +
scale_x_date(breaks = major_rv_dates, labels = major_rvs) +
theme(axis.text.x = element_text(angle = 45, hjust = 1, size = 8)) +
xlab("Version") + ylab("Function count") +
facet_wrap(~package, scales = "free_y", ncol = 2) +
theme(legend.position = "none")
#> Warning: Removed 3498 rows containing non-finite values (`stat_count()`).