Learn R Programming

repo.data

The goal of repo.data is to make repository data accessible. Mainly it consumes existing data but the idea is to also generate it.

When a function is specific of a repository it will start with its name: cran_ or bioc_.

Installation

From CRAN:

install.packages("repo.data")

You can install the development version of repo.data like so:

remotes::install_github("llrs/repo.data")

Example

We can get a data.frame of all packages on CRAN archive:

library(repo.data)
ca <- cran_archive()
#> Warning: There are 4 packages both archived and published
#> This indicate manual CRAN intervention.
head(ca)
#>         Package            Datetime Version   User   Size   Status
#> 1            A3 2013-02-07 10:00:29   0.9.1 hornik  45252 archived
#> 2            A3 2013-03-26 19:58:40   0.9.2 ligges  45907 archived
#> 3            A3 2015-08-16 23:05:54   1.0.0 hornik  42810 archived
#> 4 AalenJohansen 2023-03-01 11:42:11     1.0 ligges 165057  current
#> 5       aamatch 2025-06-24 11:40:05   0.3.7 ligges 222104  current
#> 6          aaMI 2005-06-24 17:55:17   1.0-0   root   2968 archived

We can also check CRAN comments about the packages on its archive:

cc <- cran_comments()
#> Retrieving comments, this might take a bit.
#> Caching results to be faster next call in this session.
head(cc)
#>    package
#> 1       A3
#> 2    aaSEA
#> 3      aba
#> 4   abbyyR
#> 5   abcADM
#> 6 abcdeFBA
#>                                                                          comment
#> 1         Archived on 2025-06-13 as issues were not corrected despite reminders.
#> 2 Archived on 2022-06-21 as check problems were not corrected despite reminders.
#> 3           Archived on 2022-03-27 as check problems were not corrected in time.
#> 4                            Archived on 2023-11-03 at the maintainer's request.
#> 5                   Archived on 2023-03-02 as issues were not corrected in time.
#> 6           Archived on 2022-03-07 as check problems were not corrected in time.
#>         date   action
#> 1 2025-06-13 archived
#> 2 2022-06-21 archived
#> 3 2022-03-27 archived
#> 4 2023-11-03 archived
#> 5 2023-03-02 archived
#> 6 2022-03-07 archived

Or estimate the last date of update of our packages, by the information on the session info or a data.frame:

cran_session(session = sessionInfo())
#> [1] "2025-08-27 18:40:06 CEST"
ip <- installed.packages()
cran_date(ip)
#> Warning in cran_archive(versions[, "Package"]): Omitting packages airway, alabaster.base, alabaster.matrix, alabaster.ranges, alabaster.sce, alabaster.schemas, alabaster.se, annotate, AnnotationDbi, AnnotationFilter, AnnotationHub, assorthead, Biobase, BiocFileCache, BiocGenerics, BiocIO, BioCor, BiocParallel, BiocPkgTools, BiocStyle, BiocVersion, biocViews, biomformat, Biostrings, cransays, DelayedArray, DESeq2, ensembldb, ExperimentHub, fgsea, GenomeInfoDb, GenomeInfoDbData, GenomicAlignments, GenomicFeatures, GenomicRanges, GO.db, GOSemSim, GSEABase, gypsum, h5mread, HDF5Array, IRanges, KEGGREST, MatrixGenerics, microshades, org.Hs.eg.db, phyloseq, preprocessCore, ProtGenerics, reactome.db, resios, rhdf5, rhdf5filters, Rhdf5lib, Rhtslib, rostemplate, rotemplate, Rsamtools, rtracklayer, rutils, S4Arrays, S4Vectors, scRNAseq, SingleCellExperiment, SparseArray, SummarizedExperiment, UCSC.utils, XVector.
#> Maybe they were not on CRAN?
#> [1] "2025-08-29 16:00:06 CEST"

Related packages

Other packages and related analysis :

  • Task views: https://github.com/epiverse-connect/ctv-analysis/
  • static packages: pkgstats
  • Bioconductor: biopkgtools
  • R-universe: universe
  • cranly: About package dependencies and authors of packages.
  • versions: A package about installing packages versions. install.dates() requires a CRAN date, if you are unsure you can use cran_date() to estimate it given a library() or a sessionInfo report.
  • checkpoint provides tools to ensure the results of R code are repeatable over time.

History

This package comes from the analysis on CRAN data on https://llrs.dev

Copy Link

Version

Install

install.packages('repo.data')

Monthly Downloads

2

Version

0.1.5

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Llu<c3><ad>s Revilla Sancho

Last Published

September 25th, 2025

Functions in repo.data (0.1.5)

cran_date

Estimate CRAN's date of packages
duplicated_alias

Report duplicated alias
cran_pages_links

Links between help pages by page
split_anchor

Resolve links
cran_pkges_links

Links between help pages by package
cran_help_pages_wo_links

Help pages not linked
cran_history

Check package history on CRAN
targets2files

Resolves missing targets
update_dependencies

Upgradable versions
cran_snapshot

Check CRAN package state on any given date
package_date

Find earliest date of compatibility
cran_targets_links

Links between help pages by target
package_date_actions

Package dates
package_repos

Package dependencies to repositories
package_dependencies

Find current installations
os_alias

Base R OS specific alias
cran_maintainers

Tidy information about maintainers
cran_links

CRAN's links
repo.data-package

repo.data: R Repository Data
repos_dependencies

Tidy dependencies
bioc_cran_archived

Bioconductor packages using CRAN archived packages
base_pages_links

Links between help pages by page
base_pkges_links

Links between help pages by package
base_targets_links

Links between help pages by target
base_help_pages_wo_links

Help pages not linked from base R
base_help_pages_not_linked

Help pages without links
base_links

Base R's links
alias2df

Create a matrix of alias
base_alias

Base R's alias
base_help_cliques

Help pages with cliques
cran_help_cliques

Help pages with cliques
cran_doom

Calculate time till packages are archived
cran_help_pages_not_linked

Help pages without links
cran_help_pages_links_wo_deps

Links without dependencies
clean_cache

Clean cache
cran_alias

CRAN's alias
cran_actions

Look at the CRAN actions db
cran_archive

Retrieve CRAN archive
cran_comments

CRAN comments