Package 'rcheology'

Title: Data on Base and Recommended Packages for Current and Previous Versions of R
Description: Provides a dataset of functions in all base and recommended packages of R versions 0.50 onwards.
Authors: David Hugh-Jones [aut, cre]
Maintainer: David Hugh-Jones <[email protected]>
License: CC0
Version: 4.6.2.0
Built: 2026-11-01 12:25:58 UTC
Source: https://github.com/hughjonesd/rcheology

Help Index


Data on base packages from current and previous versions of R

Description

rcheology is a data package providing two data frames:

Details

  • rcheology lists objects in versions of R from 0.50 onwards.

  • Rversions lists R versions and their release dates. NB: For a more complete and "canonical" solution, see the rversions package.

The version of the rcheology package reflects the latest R version to be included in the data, e.g. 3.5.1.x contains data up to and including R 3.5.1.

An online app for data exploration is available at https://hughjonesd.shinyapps.io/rcheology/.

Where the data comes from

R versions are built using the evercran project.

Results are found from running ls(all.names = TRUE) on all installed packages. For more details, see guest-list-objects.R.

The daily branch is rebuilt by GitHub Actions from the latest r-next and r-devel builds. These snapshots are marked in the status column and are not included in the CRAN package.

r-next follows the next build provided by r-lib/actions. This is usually R-patched, but becomes R-alpha, R-beta, R-rc, or R-prerelease during the R release cycle. r-devel is the latest daily development snapshot.

The Rversions data frame lists versions of R and release dates.

Limitations

  • Functions not built on the relevant platform - e.g. Windows functions - are not included.

  • R 0.60 data is not yet included.

  • Functions in package tcltk are not yet included before R 2.0.0.

Historical quirks

  • In 2.9.0, package Matrix was mistakenly given priority "Recommended" not "recommended" in the output of installed.packages().

  • In 2.5.0, package rcompgen was given priority NA. The NEWS file records it as a recommended package.

Both these errors have been corrected in the rcheology data.

Author(s)

Maintainer: David Hugh-Jones [email protected]

Authors:

See Also

Useful links:


Check if a core R function changed between R versions

Description

Check if a core R function changed between R versions

Usage

fun_changed(fn, from = NULL, to = NULL, package = NULL)

Arguments

fn

Character name of a function in a core R package.

from

Minimum R build (optional). This can be an R version or, in a daily GitHub build, "r-next" or "r-devel". "r-next" is usually R-patched, but can be R-alpha, R-beta, R-rc, or R-prerelease during the release cycle.

to

Maximum R build (optional). This can be an R version or, in a daily GitHub build, "r-next" or "r-devel". See from for the meaning of "r-next".

package

Name of the package (optional).

Value

0 if there was no change. 1 if the function's arguments changed. 2 if the function was not present in all versions. If the function can't be found or exists in multiple packages, throws an error.

Examples

fun_changed("debugonce")

fun_changed("debugonce", "3.4.0", "3.4.3")
fun_changed("debugonce", "3.3.0", "3.4.3")

Data on objects from current and previous versions of R

Description

A data frame with every function (and other object) in versions of R from 0.50 onwards. Variables are:

  • package: package the object comes from

  • name: name of the object

  • Rversion: version of R as major.minor.patch

  • status: one of "released", "r-next", or "r-devel". The CRAN package contains released versions only; the daily branch on GitHub also contain the latest r-next and r-devel snapshots. Note that on the daily branch, r-next will typically have the same Rversion as the latest release.

  • type: Result of calling typeof() on the object

  • class: class() of the object, separated by slashes if there are multiple classes.

  • exported: TRUE if the object name was found in getNamespaceExports(). True for anything in the "base" package. NA if the package does not have a namespace (e.g. "datasets" in early versions).

  • hidden: TRUE if the object name starts with ".". These objects are not reported by ls().

  • S4generic: TRUE if the object is an S4 generic according to methods::isGeneric(). Note that in earlier versions of rcheology, this column was called generic.

  • priority: "base" for base packages, "recommended" for recommended packages. NA for earlier versions of R (pre 1.6.0) when the priority concept did not exist.

  • args: the arguments of the function, or NA for non-functions


Previous R versions with dates

Description

A data frame with 2 variables:

  • Rversion: version of R as major.minor.patch

  • date: date of release

Details

This goes back to 0.x releases. For 2.15.1-w, see here.