R Under development (unstable) (2026-04-26 r89963 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library("repo.data") Attaching package: 'repo.data' The following object is masked from 'package:stats': alias > > # Test that it works > pr <- package_repos() > repo.data:::no_internet(pr) > # Expects at least one repository > cols <- ncol(pr) > stopifnot("At least 6 columns" = cols >= 6L) > # Expected colnames of first and last columns > stopifnot(all.equal(colnames(pr)[1:2], c("Package", "Repository"))) > last_three_columns <- seq(from = cols - 2, to = cols) > stopifnot(all.equal(colnames(pr)[last_three_columns], c("Other", "Packages_deps", "Repos"))) > stopifnot("No NA" = !anyNA(pr)) > > # Test that Bioconductor packages get their dependencies too > opts <- options() > repos <- c(getOption("repos"), repo.data:::bioc_repos()) > pr <- package_repos(repos = repos) > opts2 <- options() > stopifnot("package_repos is messing with opts" = !identical(opts, opts2)) > repo.data:::no_internet(pr) > cran <- grep("CRAN", names(repos), value = TRUE) > stopifnot("All packages have data" = sum(pr[, -c(1, 2)]) != 0L) > > proc.time() user system elapsed 21.12 3.56 25.09