From 87b1da51367af2cf0244a6bf94f2648d36690315 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 16 Jul 2024 08:26:15 -0700 Subject: [PATCH] Sort library output --- inst/tests/other.Rraw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/tests/other.Rraw b/inst/tests/other.Rraw index 35af1b5e4..79f64b487 100644 --- a/inst/tests/other.Rraw +++ b/inst/tests/other.Rraw @@ -29,8 +29,8 @@ loaded = sapply(pkgs, f) if (!all(loaded)) { options(warning.length=8000) stop( - "test.data.table('other.Rraw') failed to attach required package(s): ", toString(names(loaded)[!loaded]), ".", - "\nHere's all installed packages:\n ", paste(rownames(installed.packages()), collapse=","), + "test.data.table('other.Rraw') failed to attach required package(s): ", toString(sort(names(loaded)[!loaded])), ".", + "\nHere's all installed packages:\n ", paste(sort(rownames(installed.packages())), collapse=","), "\nHere's the search() path:\n ", paste(search(), collapse="->"), "\nIf you can't install them and this is R CMD check, please set environment variable TEST_DATA_TABLE_WITH_OTHER_PACKAGES back to the default, false; it's currently ", Sys.getenv("TEST_DATA_TABLE_WITH_OTHER_PACKAGES", ""), ".") # Would like to install them now for convenience but gitlab-ci.yml seems to install to bus/mirror-other-packages/cran.