R Under development (unstable) (2024-07-10 r86888 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. > > if (requireNamespace("tinytest", quietly=TRUE)) { + + ## Set a seed to make the test deterministic + set.seed(42) + + ## R makes us do this (but tinytest now sets it too) + Sys.setenv("R_TESTS"="") + + ## Force tests to be executed if in dev release which we define as + ## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not + if (length(strsplit(packageDescription("Rcpp")$Version, "\\.")[[1]]) > 3) { # dev rel, and + if (Sys.getenv("RunAllRcppTests") != "no") { # if env.var not yet set + message("Setting \"RunAllRcppTests\"=\"yes\" for development release\n") + Sys.setenv("RunAllRcppTests"="yes") + } + if (Sys.getenv("RunVerboseRcppTests") != "no") { # if env.var not yet set + message("Setting \"RunVerboseRcppTests\"=\"yes\" for development release\n") + Sys.setenv("RunVerboseRcppTests"="yes") + } + } + + ## On Travis also always set tests; see + ## https://docs.travis-ci.com/user/environment-variables/#default-environment-variables + ## GitHub Action also set CI variable; see + ## https://docs.github.com/en/actions/reference/environment-variables + ## And we set it in 'docker run' call + ## Ensure Codecov runs full tests too + if ((Sys.getenv("CI") == "true") || + (Sys.getenv("TRAVIS") == "true") || + (Sys.getenv("CONTINUOUS_INTEGRATION") == "true") || + (Sys.getenv("CODECOV_TOKEN") != "")) { + if (Sys.getenv("RunAllRcppTests") != "no") { # if env.var not yet set + message("Always enabling \"RunAllRcppTests\"=\"yes\" in CI\n") + Sys.setenv("RunAllRcppTests"="yes") + } + if (Sys.getenv("RunVerboseRcppTests") != "no") { # if env.var not yet set + message("Always enabling \"RunVerboseRcppTests\"=\"yes\" in CI\n") + Sys.setenv("RunVerboseRcppTests"="yes") + } + } + + ## there are several more granular ways to test files in a tinytest directory, + ## see its package vignette; tests can also run once the package is installed + ## using the same command `test_package(pkgName)`, or by director or file + tinytest::test_package("Rcpp") + } test_algorithm.R.............. 0 tests 72ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_as.R..................... 0 tests 4ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_attribute_package.R...... 0 tests test_attribute_package.R...... 0 tests 5ms [Exited at #23: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_attributes.R............. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_binary_package.R......... 0 tests test_binary_package.R......... 0 tests test_binary_package.R......... 0 tests test_binary_package.R......... 0 tests 3ms [Exited at #28: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_client_package.R......... 0 tests test_client_package.R......... 0 tests test_client_package.R......... 0 tests 3ms [Exited at #25: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_coerce.R................. 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_dataframe.R.............. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_date.R................... 0 tests 5ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_dispatch.R............... 0 tests 3ms [Exited at #23: Set 'RunAllRcppTests' to 'yes' to run.] test_embedded_r.R............. 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_environments.R........... 0 tests 6ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_exceptions.R............. 0 tests 3ms [Exited at #22: Set 'RunAllRcppTests' to 'yes' to run.] test_exceptions_nocall.R...... 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_expose_class.R........... 0 tests test_expose_class.R........... 0 tests 3ms [Exited at #23: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_function.R............... 0 tests 6ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_global_rostream.R........ 0 tests test_global_rostream.R........ 0 tests 3ms [Exited at #23: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_interface.R.............. 0 tests test_interface.R.............. 0 tests 3ms [Exited at #23: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_internal_function.R...... 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_internal_function_cpp11.R 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_language.R............... 0 tests 4ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_listof.R................. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_matrix.R................. 0 tests 6ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_misc.R................... 0 tests 4ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_modref.R................. 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_module.R................. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_module_client_package.R.. 0 tests test_module_client_package.R.. 0 tests test_module_client_package.R.. 0 tests 3ms [Exited at #30: Skipping as older macOS or Windows.] test_na.R..................... 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_packageversion.R......... 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_quickanddirty.R.......... 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_rcpp_package_skeleton.R.. 0 tests test_rcpp_package_skeleton.R.. 0 tests 4ms [Exited at #23: Set 'RunVerboseRcppTests' and 'RunAllRcppTests' to 'yes' to run.] test_reference.R.............. 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_rmath.R.................. 0 tests 10ms [Exited at #22: Set 'RunAllRcppTests' to 'yes' to run.] test_robject.R................ 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_s4.R..................... 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_stack.R.................. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_stats.R.................. 0 tests 6ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_string.R................. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_subset.R................. 0 tests 3ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_sugar.R.................. 0 tests 23ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_sugar_var.R.............. 0 tests 3ms [Exited at #22: Set 'RunAllRcppTests' to 'yes' to run.] test_support.R................ 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_system.R................. 0 tests 2ms [Exited at #22: Set 'RunAllRcppTests' to 'yes' to run.] test_table.R.................. 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_vector.R................. 0 tests 9ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_vector_old.R............. 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_wrap.R................... 0 tests 4ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_wstring.R................ 0 tests 2ms [Exited at #21: Set 'RunAllRcppTests' to 'yes' to run.] test_xptr.R................... 0 tests 2ms [Exited at #23: Set 'RunAllRcppTests' to 'yes' to run.] All ok, 0 results (0.3s) > > proc.time() user system elapsed 0.59 0.18 0.76