R Under development (unstable) (2024-03-19 r86153 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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(testthat) > library(tune) > > # The submission to CRAN has been rejected several times because the _total_ > # time to check the package is too long (>10 min). Most of this is attributable > # to the install time for dependencies. However, CRAN has been very inconsistent > # about this with one submission stating that the rule is that the check time > # should be less than 10 min while in another that the total check time, > # _aggregated over all architectures_, should be under 10 min (e.g. adding the > # windows check times for 32 and 64 bit to the linux test times and so on). > # Since they have been undependable on this, we'll avoid running all tests on > # CRAN. > > if (identical(Sys.getenv("NOT_CRAN"), "true")) { # emulates `testthat:::on_cran()` + if (requireNamespace("xml2")) { + test_check("tune", reporter = MultiReporter$new(reporters = list(JunitReporter$new(file = "test-results.xml"), CheckReporter$new()))) + } else { + test_check("tune") + } + } > > proc.time() user system elapsed 3.25 0.45 3.70