CRAN Package Check Results for Package repo.data

Last updated on 2026-08-02 12:52:13 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.2 4.05 493.22 497.27 OK
r-devel-linux-x86_64-debian-gcc 0.2.2 3.18 339.81 342.99 NOTE
r-devel-linux-x86_64-fedora-clang 0.2.2 712.80 OK
r-devel-linux-x86_64-fedora-gcc 0.2.2 333.77 OK
r-devel-windows-x86_64 0.2.2 5.00 555.00 560.00 OK
r-patched-linux-x86_64 0.2.2 5.12 472.49 477.61 OK
r-release-linux-x86_64 0.2.2 4.12 480.27 484.39 OK
r-release-macos-arm64 0.2.2 1.00 306.00 307.00 OK
r-release-macos-x86_64 0.2.2 3.00 661.00 664.00 OK
r-release-windows-x86_64 0.2.2 8.00 573.00 581.00 OK
r-oldrel-macos-arm64 0.2.2 1.00 174.00 175.00 ERROR
r-oldrel-macos-x86_64 0.2.2 3.00 384.00 387.00 ERROR
r-oldrel-windows-x86_64 0.2.2 6.00 662.00 668.00 ERROR

Additional issues

musl

Check Details

Version: 0.2.2
Check: for new files in some other directories
Result: NOTE Found the following files/directories: ‘~/tmp/scratch/Rtmp01JLgw’ ‘~/tmp/scratch/Rtmp0YSBNh’ ‘~/tmp/scratch/Rtmp0m3u0X’ ‘~/tmp/scratch/Rtmp15xSKE’ ‘~/tmp/scratch/Rtmp1EqCJb’ ‘~/tmp/scratch/Rtmp1OAraK’ ‘~/tmp/scratch/Rtmp1Px9TJ’ ‘~/tmp/scratch/Rtmp1s1vXi’ ‘~/tmp/scratch/Rtmp2TH7m8’ ‘~/tmp/scratch/Rtmp2wbVfd’ ‘~/tmp/scratch/Rtmp3Dy3MK’ ‘~/tmp/scratch/Rtmp4LVhnE’ ‘~/tmp/scratch/Rtmp4q4ivS’ ‘~/tmp/scratch/Rtmp4rU1l2’ ‘~/tmp/scratch/Rtmp5LPAHo’ ‘~/tmp/scratch/Rtmp5TKSt5’ ‘~/tmp/scratch/Rtmp5gdIHP’ ‘~/tmp/scratch/Rtmp5qZVfv’ ‘~/tmp/scratch/Rtmp68ODR4’ ‘~/tmp/scratch/Rtmp68TgY5’ ‘~/tmp/scratch/Rtmp6pDVjl’ ‘~/tmp/scratch/Rtmp6rflES’ ‘~/tmp/scratch/Rtmp7GJO6R’ ‘~/tmp/scratch/Rtmp7kL2vG’ ‘~/tmp/scratch/Rtmp7mQqY7’ ‘~/tmp/scratch/Rtmp7ppCbh’ ‘~/tmp/scratch/Rtmp8J0RTs’ ‘~/tmp/scratch/Rtmp8Kjc5C’ ‘~/tmp/scratch/Rtmp8qYJxT’ ‘~/tmp/scratch/Rtmp9bJBdQ’ ‘~/tmp/scratch/Rtmp9wfldx’ ‘~/tmp/scratch/RtmpACNnR7’ ‘~/tmp/scratch/RtmpACRaJ3’ ‘~/tmp/scratch/RtmpAeWpHw’ ‘~/tmp/scratch/RtmpAvUDEB’ ‘~/tmp/scratch/RtmpBeOOOr’ ‘~/tmp/scratch/RtmpBxz114’ ‘~/tmp/scratch/RtmpC2C8ab’ ‘~/tmp/scratch/RtmpCW9ePZ’ ‘~/tmp/scratch/RtmpDAvzlc’ ‘~/tmp/scratch/RtmpDkwjZ8’ ‘~/tmp/scratch/RtmpDmb7ej’ ‘~/tmp/scratch/RtmpDsIT2e’ ‘~/tmp/scratch/RtmpEUNrru’ ‘~/tmp/scratch/RtmpEcLXcN’ ‘~/tmp/scratch/RtmpEphExr’ ‘~/tmp/scratch/RtmpF39TRS’ ‘~/tmp/scratch/RtmpFBZkB8’ ‘~/tmp/scratch/RtmpFFDOJj’ ‘~/tmp/scratch/RtmpFJM4sw’ ‘~/tmp/scratch/RtmpFij3h5’ ‘~/tmp/scratch/RtmpG24u8Z’ ‘~/tmp/scratch/RtmpG6YC2N’ ‘~/tmp/scratch/RtmpGJ8Aoi’ ‘~/tmp/scratch/RtmpHNNmht’ ‘~/tmp/scratch/RtmpHTLiOM’ ‘~/tmp/scratch/RtmpHn1TDd’ ‘~/tmp/scratch/RtmpITNXvv’ ‘~/tmp/scratch/RtmpIUbNnM’ ‘~/tmp/scratch/RtmpIif5Q4’ ‘~/tmp/scratch/RtmpJBUSGL’ ‘~/tmp/scratch/RtmpJjnQks’ ‘~/tmp/scratch/RtmpKF15Th’ ‘~/tmp/scratch/RtmpL2I5jS’ ‘~/tmp/scratch/RtmpL7uql1’ ‘~/tmp/scratch/RtmpLbVo4d’ ‘~/tmp/scratch/RtmpLkluxN’ ‘~/tmp/scratch/RtmpMCbTtf’ ‘~/tmp/scratch/RtmpMRYI25’ ‘~/tmp/scratch/RtmpN1jokh’ ‘~/tmp/scratch/RtmpO1MiDQ’ ‘~/tmp/scratch/RtmpOJ6ftg’ ‘~/tmp/scratch/RtmpOXfsRF’ ‘~/tmp/scratch/RtmpP8j4wM’ ‘~/tmp/scratch/RtmpPAvKQM’ ‘~/tmp/scratch/RtmpPFmf3u’ ‘~/tmp/scratch/RtmpPS70hQ’ ‘~/tmp/scratch/RtmpPoMrTd’ ‘~/tmp/scratch/RtmpQ1S5YH’ ‘~/tmp/scratch/RtmpQbaefS’ ‘~/tmp/scratch/RtmpRR8OyH’ ‘~/tmp/scratch/RtmpRYyhfy’ ‘~/tmp/scratch/RtmpRij58x’ ‘~/tmp/scratch/RtmpRwMqzJ’ ‘~/tmp/scratch/RtmpS2o44q’ ‘~/tmp/scratch/RtmpS54fel’ ‘~/tmp/scratch/RtmpSCj84X’ ‘~/tmp/scratch/RtmpSKzoyN’ ‘~/tmp/scratch/RtmpSUGViI’ ‘~/tmp/scratch/RtmpSs2VmJ’ ‘~/tmp/scratch/RtmpTqUxxF’ ‘~/tmp/scratch/RtmpUMqCkb’ ‘~/tmp/scratch/RtmpWJvh0N’ ‘~/tmp/scratch/RtmpWdXlk1’ ‘~/tmp/scratch/RtmpWu0ejC’ ‘~/tmp/scratch/RtmpY1krIS’ ‘~/tmp/scratch/RtmpY4JTfI’ ‘~/tmp/scratch/RtmpYGMZvC’ ‘~/tmp/scratch/RtmpZYGSQq’ ‘~/tmp/scratch/RtmpZi80dw’ ‘~/tmp/scratch/RtmpZrfd6s’ ‘~/tmp/scratch/Rtmpa5xcKO’ ‘~/tmp/scratch/Rtmpa9yiwW’ ‘~/tmp/scratch/RtmpaSO4R7’ ‘~/tmp/scratch/RtmpaaWbpW’ ‘~/tmp/scratch/Rtmpae1E6L’ ‘~/tmp/scratch/Rtmpb5PKpV’ ‘~/tmp/scratch/Rtmpb9FOIu’ ‘~/tmp/scratch/RtmpbA3vMf’ ‘~/tmp/scratch/RtmpbGhBwi’ ‘~/tmp/scratch/RtmpbeMnoo’ ‘~/tmp/scratch/RtmpcFZrFF’ ‘~/tmp/scratch/RtmpcqQlEC’ ‘~/tmp/scratch/RtmpdGG9fq’ ‘~/tmp/scratch/RtmpdJrEeB’ ‘~/tmp/scratch/Rtmpdlmb3z’ ‘~/tmp/scratch/RtmpeNIH0C’ ‘~/tmp/scratch/Rtmpetaq8G’ ‘~/tmp/scratch/RtmpfJTrUu’ ‘~/tmp/scratch/RtmpfcT4sJ’ ‘~/tmp/scratch/RtmpgXQpOw’ ‘~/tmp/scratch/RtmphlLMSc’ ‘~/tmp/scratch/Rtmpimp86H’ ‘~/tmp/scratch/Rtmpivs4kI’ ‘~/tmp/scratch/Rtmpj10KlH’ ‘~/tmp/scratch/Rtmpj85CZK’ ‘~/tmp/scratch/RtmpkDhvbg’ ‘~/tmp/scratch/RtmpkGLV78’ ‘~/tmp/scratch/RtmpkJ5Sji’ ‘~/tmp/scratch/RtmpkN5iqR’ ‘~/tmp/scratch/RtmpkTX057’ ‘~/tmp/scratch/Rtmpkbchxw’ ‘~/tmp/scratch/Rtmpkk86KE’ ‘~/tmp/scratch/RtmplHr6Mo’ ‘~/tmp/scratch/Rtmplme0LS’ ‘~/tmp/scratch/Rtmpmz9Q3X’ ‘~/tmp/scratch/Rtmpn7fwX4’ ‘~/tmp/scratch/RtmpnLbb8Q’ ‘~/tmp/scratch/RtmpnNkQY1’ ‘~/tmp/scratch/RtmpoGBa9l’ ‘~/tmp/scratch/RtmpoOxxfv’ ‘~/tmp/scratch/RtmpoYagWg’ ‘~/tmp/scratch/RtmpowdJyi’ ‘~/tmp/scratch/Rtmpps9Gl4’ ‘~/tmp/scratch/Rtmpq4F5eV’ ‘~/tmp/scratch/RtmpqkqfKg’ ‘~/tmp/scratch/RtmpqmCYb7’ ‘~/tmp/scratch/Rtmpqrx2NG’ ‘~/tmp/scratch/RtmpqwI3AS’ ‘~/tmp/scratch/Rtmps5m6gV’ ‘~/tmp/scratch/RtmpsN4z2O’ ‘~/tmp/scratch/RtmpsWNorf’ ‘~/tmp/scratch/RtmpsdecY8’ ‘~/tmp/scratch/Rtmpts1d6l’ ‘~/tmp/scratch/Rtmpu1JcI1’ ‘~/tmp/scratch/Rtmpuffhcn’ ‘~/tmp/scratch/RtmpuzR4Ji’ ‘~/tmp/scratch/RtmpwEjD9a’ ‘~/tmp/scratch/RtmpwFszj5’ ‘~/tmp/scratch/Rtmpwv9Nu7’ ‘~/tmp/scratch/Rtmpxb5mc3’ ‘~/tmp/scratch/RtmpyiTdGu’ ‘~/tmp/scratch/RtmpysaGyH’ ‘~/tmp/scratch/Rtmpyx0qn1’ ‘~/tmp/scratch/RtmpzpQ87G’ ‘~/tmp/scratch/Rtmpzprcrf’ ‘~/tmp/scratch/quarto-sessionc283393aa4b454e7’ ‘~/tmp/scratch/xvfb-run.2FSzi6’ ‘~/tmp/scratch/xvfb-run.36kUNj’ ‘~/tmp/scratch/xvfb-run.3I4YEL’ ‘~/tmp/scratch/xvfb-run.3g6Xo1’ ‘~/tmp/scratch/xvfb-run.6AMj9Z’ ‘~/tmp/scratch/xvfb-run.6JAcVb’ ‘~/tmp/scratch/xvfb-run.A6PXLP’ ‘~/tmp/scratch/xvfb-run.B5XbWj’ ‘~/tmp/scratch/xvfb-run.CHrHyy’ ‘~/tmp/scratch/xvfb-run.CeP1FE’ ‘~/tmp/scratch/xvfb-run.Di99SF’ ‘~/tmp/scratch/xvfb-run.E34DbR’ ‘~/tmp/scratch/xvfb-run.EB9Fv5’ ‘~/tmp/scratch/xvfb-run.EWkMA5’ ‘~/tmp/scratch/xvfb-run.FNmSWC’ ‘~/tmp/scratch/xvfb-run.FcqV5i’ ‘~/tmp/scratch/xvfb-run.Fm6vmR’ ‘~/tmp/scratch/xvfb-run.FnBCEB’ ‘~/tmp/scratch/xvfb-run.G7xr6J’ ‘~/tmp/scratch/xvfb-run.GYTcse’ ‘~/tmp/scratch/xvfb-run.JdwW7j’ ‘~/tmp/scratch/xvfb-run.JnfWiC’ ‘~/tmp/scratch/xvfb-run.JqJrmi’ ‘~/tmp/scratch/xvfb-run.KVELWy’ ‘~/tmp/scratch/xvfb-run.Ka7HSH’ ‘~/tmp/scratch/xvfb-run.LjP55y’ ‘~/tmp/scratch/xvfb-run.NfIiMY’ ‘~/tmp/scratch/xvfb-run.OsfpPn’ ‘~/tmp/scratch/xvfb-run.QA1chx’ ‘~/tmp/scratch/xvfb-run.QItFgH’ ‘~/tmp/scratch/xvfb-run.RZ1CEi’ ‘~/tmp/scratch/xvfb-run.T5BLfn’ ‘~/tmp/scratch/xvfb-run.TezjNP’ ‘~/tmp/scratch/xvfb-run.UERcqO’ ‘~/tmp/scratch/xvfb-run.UJI5C8’ ‘~/tmp/scratch/xvfb-run.Unvsy4’ ‘~/tmp/scratch/xvfb-run.UuxTdn’ ‘~/tmp/scratch/xvfb-run.UwoKp6’ ‘~/tmp/scratch/xvfb-run.VGURrS’ ‘~/tmp/scratch/xvfb-run.VR1NOX’ ‘~/tmp/scratch/xvfb-run.VpoWRA’ ‘~/tmp/scratch/xvfb-run.WCBYr6’ ‘~/tmp/scratch/xvfb-run.WD3mrr’ ‘~/tmp/scratch/xvfb-run.WGElsa’ ‘~/tmp/scratch/xvfb-run.XD87OK’ ‘~/tmp/scratch/xvfb-run.YFugsy’ ‘~/tmp/scratch/xvfb-run.ZO2UBO’ ‘~/tmp/scratch/xvfb-run.cnP3Z8’ ‘~/tmp/scratch/xvfb-run.gKaT0t’ ‘~/tmp/scratch/xvfb-run.gURCJd’ ‘~/tmp/scratch/xvfb-run.goukbv’ ‘~/tmp/scratch/xvfb-run.hgZz4p’ ‘~/tmp/scratch/xvfb-run.hqSky8’ ‘~/tmp/scratch/xvfb-run.islTK7’ ‘~/tmp/scratch/xvfb-run.jKs1Cp’ ‘~/tmp/scratch/xvfb-run.k08lNj’ ‘~/tmp/scratch/xvfb-run.kmlttT’ ‘~/tmp/scratch/xvfb-run.knHUcI’ ‘~/tmp/scratch/xvfb-run.m6P61p’ ‘~/tmp/scratch/xvfb-run.mGtqwn’ ‘~/tmp/scratch/xvfb-run.miCPau’ ‘~/tmp/scratch/xvfb-run.nXLage’ ‘~/tmp/scratch/xvfb-run.pO3xQr’ ‘~/tmp/scratch/xvfb-run.pl4a3M’ ‘~/tmp/scratch/xvfb-run.pniN1O’ ‘~/tmp/scratch/xvfb-run.qVjXpc’ ‘~/tmp/scratch/xvfb-run.qqtbul’ ‘~/tmp/scratch/xvfb-run.sV9aUi’ ‘~/tmp/scratch/xvfb-run.schjwy’ ‘~/tmp/scratch/xvfb-run.t7FiSQ’ ‘~/tmp/scratch/xvfb-run.uGGx5G’ ‘~/tmp/scratch/xvfb-run.vZLRZu’ ‘~/tmp/scratch/xvfb-run.wkBhL6’ ‘~/tmp/scratch/xvfb-run.wtEAUG’ ‘~/tmp/scratch/xvfb-run.x7JiyE’ ‘~/tmp/scratch/xvfb-run.ykrBBb’ ‘~/tmp/scratch/xvfb-run.zNvXzp’ ‘~/tmp/scratch/xvfb-run.zxDij1’ Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.2
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘test-actions.R’ [6s/12s] Running ‘test-alias.R’ [9s/19s] Running the tests in ‘tests/test-alias.R’ failed. Complete output: > library("repo.data") Attaching package: 'repo.data' The following object is masked from 'package:stats': alias > alias_columns <- c("Package", "Source", "Target") > pkges <- c("BaseSet", "experDesign") > bpkges <- c("tools", "compiler") > > # Test that cache works > st <- system.time(ca <- cran_alias(pkges)) Downloading and caching CRAN aliases for this session. > repo.data:::no_internet(ca) > stopifnot(colnames(ca) == alias_columns) > stopifnot(is.data.frame(ca)) > st1 <- system.time(ca2 <- cran_alias(pkges)) > stopifnot("Cache didn't work" = st1[[3]] < st[[3]]) > stopifnot("Cache was not the same" = all.equal(ca, ca2)) > > clean_cache() > st2 <- system.time(ca3 <- cran_alias(pkges)) Downloading and caching CRAN aliases for this session. > repo.data:::no_internet(ca3) > stopifnot("Clean cache restores initial state" = st2[[3]] > st1[[3]]) > stopifnot("Still same result" = all.equal(ca, ca3)) > > ca <- cran_alias() Warning: Packages with targets not present in a OS: 'sfsmisc' > repo.data:::no_internet(ca) > stopifnot(colnames(ca) == alias_columns) > ca2 <- cran_alias() > stopifnot("Cache returns the same for all packages" = all.equal(ca, ca2)) > > st <- system.time(ba <- base_alias(bpkges)) Downloading and caching base R's aliases for this session. > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > stopifnot(is.data.frame(ba)) > st1 <- system.time(ba2 <- base_alias(bpkges)) > stopifnot("Cache didn't work" = st1[[3]] < st[[3]]) > stopifnot("Cache was not the same" = all.equal(ba, ba2)) > > clean_cache() > st2 <- system.time(ba3 <- base_alias(bpkges)) Downloading and caching base R's aliases for this session. > repo.data:::no_internet(ba3) > stopifnot("Clean cache restores initial state" = st2[[3]] > st1[[3]]) > stopifnot("Still same result" = all.equal(ba, ba3)) > > ba <- base_alias() > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > ba2 <- base_alias() > stopifnot("Cache returns the same for all packages" = all.equal(ba, ba2)) > > > clean_cache() > > oldrepos <- getOption("repos") > on.exit(options(oldrepos), add = TRUE) > setRepositories(ind = 2, addURLs = c(CRAN = "https://cran.r-project.org")) > pkges <- c(pkges, "BioCor") > > st <- system.time(ba <- alias(pkges)) > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > st1 <- system.time(ba2 <- alias(pkges)) > stopifnot("Cache alias didn't work" = any(st1 < st)) > stopifnot("Alias with cache was not the same" = all.equal(ba, ba2)) > missing_pkg <- pkges[!pkges %in% ba2$Package] > > if (length(missing_pkg)) { + stop(sprintf("All packages are present on alias output: %s", toString(missing_pkg))) + } Error: All packages are present on alias output: BioCor Execution halted Flavor: r-oldrel-macos-arm64

Version: 0.2.2
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘test-actions.R’ [12s/22s] Running ‘test-alias.R’ [17s/33s] Running the tests in ‘tests/test-alias.R’ failed. Complete output: > library("repo.data") Attaching package: 'repo.data' The following object is masked from 'package:stats': alias > alias_columns <- c("Package", "Source", "Target") > pkges <- c("BaseSet", "experDesign") > bpkges <- c("tools", "compiler") > > # Test that cache works > st <- system.time(ca <- cran_alias(pkges)) Downloading and caching CRAN aliases for this session. > repo.data:::no_internet(ca) > stopifnot(colnames(ca) == alias_columns) > stopifnot(is.data.frame(ca)) > st1 <- system.time(ca2 <- cran_alias(pkges)) > stopifnot("Cache didn't work" = st1[[3]] < st[[3]]) > stopifnot("Cache was not the same" = all.equal(ca, ca2)) > > clean_cache() > st2 <- system.time(ca3 <- cran_alias(pkges)) Downloading and caching CRAN aliases for this session. > repo.data:::no_internet(ca3) > stopifnot("Clean cache restores initial state" = st2[[3]] > st1[[3]]) > stopifnot("Still same result" = all.equal(ca, ca3)) > > ca <- cran_alias() Warning: Packages with targets not present in a OS: 'sfsmisc' > repo.data:::no_internet(ca) > stopifnot(colnames(ca) == alias_columns) > ca2 <- cran_alias() > stopifnot("Cache returns the same for all packages" = all.equal(ca, ca2)) > > st <- system.time(ba <- base_alias(bpkges)) Downloading and caching base R's aliases for this session. > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > stopifnot(is.data.frame(ba)) > st1 <- system.time(ba2 <- base_alias(bpkges)) > stopifnot("Cache didn't work" = st1[[3]] < st[[3]]) > stopifnot("Cache was not the same" = all.equal(ba, ba2)) > > clean_cache() > st2 <- system.time(ba3 <- base_alias(bpkges)) Downloading and caching base R's aliases for this session. > repo.data:::no_internet(ba3) > stopifnot("Clean cache restores initial state" = st2[[3]] > st1[[3]]) > stopifnot("Still same result" = all.equal(ba, ba3)) > > ba <- base_alias() > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > ba2 <- base_alias() > stopifnot("Cache returns the same for all packages" = all.equal(ba, ba2)) > > > clean_cache() > > oldrepos <- getOption("repos") > on.exit(options(oldrepos), add = TRUE) > setRepositories(ind = 2, addURLs = c(CRAN = "https://cran.r-project.org")) > pkges <- c(pkges, "BioCor") > > st <- system.time(ba <- alias(pkges)) > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > st1 <- system.time(ba2 <- alias(pkges)) > stopifnot("Cache alias didn't work" = any(st1 < st)) > stopifnot("Alias with cache was not the same" = all.equal(ba, ba2)) > missing_pkg <- pkges[!pkges %in% ba2$Package] > > if (length(missing_pkg)) { + stop(sprintf("All packages are present on alias output: %s", toString(missing_pkg))) + } Error: All packages are present on alias output: BioCor Execution halted Flavor: r-oldrel-macos-x86_64

Version: 0.2.2
Check: tests
Result: ERROR Running 'spelling.R' [0s] Running 'test-actions.R' [1s] Running 'test-alias.R' [34s] Running 'test-bioconductor.R' [5s] Running 'test-cran_actions.R' [0s] Running 'test-cran_archive.R' [55s] Running 'test-cran_doom.R' [31s] Running 'test-cran_history.R' [0s] Running 'test-cran_issues.R' [0s] Running 'test-cran_targets_links.R' [0s] Running 'test-cran_version.R' [6s] Running 'test-dates.R' [3s] Running 'test-help.R' [0s] Running 'test-links.R' [64s] Running 'test-maintainers.R' [4s] Running 'test-package_date.R' [6s] Running 'test-package_repos.R' [33s] Running 'test-update_dependencies.R' [57s] Running the tests in 'tests/test-alias.R' failed. Complete output: > library("repo.data") Attaching package: 'repo.data' The following object is masked from 'package:stats': alias > alias_columns <- c("Package", "Source", "Target") > pkges <- c("BaseSet", "experDesign") > bpkges <- c("tools", "compiler") > > # Test that cache works > st <- system.time(ca <- cran_alias(pkges)) Downloading and caching CRAN aliases for this session. > repo.data:::no_internet(ca) > stopifnot(colnames(ca) == alias_columns) > stopifnot(is.data.frame(ca)) > st1 <- system.time(ca2 <- cran_alias(pkges)) > stopifnot("Cache didn't work" = st1[[3]] < st[[3]]) > stopifnot("Cache was not the same" = all.equal(ca, ca2)) > > clean_cache() > st2 <- system.time(ca3 <- cran_alias(pkges)) Downloading and caching CRAN aliases for this session. > repo.data:::no_internet(ca3) > stopifnot("Clean cache restores initial state" = st2[[3]] > st1[[3]]) > stopifnot("Still same result" = all.equal(ca, ca3)) > > ca <- cran_alias() Warning: Packages with targets not present in a OS: 'sfsmisc' > repo.data:::no_internet(ca) > stopifnot(colnames(ca) == alias_columns) > ca2 <- cran_alias() > stopifnot("Cache returns the same for all packages" = all.equal(ca, ca2)) > > st <- system.time(ba <- base_alias(bpkges)) Downloading and caching base R's aliases for this session. > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > stopifnot(is.data.frame(ba)) > st1 <- system.time(ba2 <- base_alias(bpkges)) > stopifnot("Cache didn't work" = st1[[3]] < st[[3]]) > stopifnot("Cache was not the same" = all.equal(ba, ba2)) > > clean_cache() > st2 <- system.time(ba3 <- base_alias(bpkges)) Downloading and caching base R's aliases for this session. > repo.data:::no_internet(ba3) > stopifnot("Clean cache restores initial state" = st2[[3]] > st1[[3]]) > stopifnot("Still same result" = all.equal(ba, ba3)) > > ba <- base_alias() > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > ba2 <- base_alias() > stopifnot("Cache returns the same for all packages" = all.equal(ba, ba2)) > > > clean_cache() > > oldrepos <- getOption("repos") > on.exit(options(oldrepos), add = TRUE) > setRepositories(ind = 2, addURLs = c(CRAN = "https://cran.r-project.org")) > pkges <- c(pkges, "BioCor") > > st <- system.time(ba <- alias(pkges)) > repo.data:::no_internet(ba) > stopifnot(colnames(ba) == alias_columns) > st1 <- system.time(ba2 <- alias(pkges)) > stopifnot("Cache alias didn't work" = any(st1 < st)) > stopifnot("Alias with cache was not the same" = all.equal(ba, ba2)) > missing_pkg <- pkges[!pkges %in% ba2$Package] > > if (length(missing_pkg)) { + stop(sprintf("All packages are present on alias output: %s", toString(missing_pkg))) + } Error: All packages are present on alias output: BioCor Execution halted Flavor: r-oldrel-windows-x86_64