R Under development (unstable) (2023-08-21 r84998 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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. > #### doRUnit.R --- Run RUnit tests > ####------------------------------------------------------------------------ > > ### Originally follows Gregor Gojanc's example in CRAN package 'gdata' > ### and the corresponding section in the R Wiki: > ### http://wiki.r-project.org/rwiki/doku.php?id=developers:runit > > ### MM: Vastly changed: This should also be "runnable" for *installed* > ## package which has no ./tests/ > ## ----> put the bulk of the code e.g. in ../inst/unitTests/runTests.R : > > ### DJS: Added the possibility of different testing levels > ### environment variable LEVEL set by make > ### default value of 1 is level used in check and install > > if(require("RUnit", quietly=TRUE)) { + + ## --- Setup --- + + wd <- getwd() + pkg <- sub("\\.Rcheck$", '', basename(dirname(wd))) + level <- Sys.getenv("LEVEL") + + library(package=pkg, character.only=TRUE) + cat("value of pkg is ",pkg,"\n\n") + + path <- system.file("unitTests", package = pkg) + + stopifnot(file.exists(path), file.info(path.expand(path))$isdir) + + source(file.path(path, "runTests.R"), echo = TRUE) + } value of pkg is DistributionUtils > if (require("RUnit", quietly = TRUE)) { + if (Sys.getenv("RCMDCHECK") == "FALSE") { + level <- Sys.getenv("LEVEL") + pkg <- Sys. .... [TRUNCATED] Executing test function test.besselRatio ... done successfully. Executing test function test.incompleteBesselK ... done successfully. Executing test function test.integrateDens ... done successfully. Executing test function test.inversionTestpq ... done successfully. Executing test function test.inversionTestqp ... done successfully. Executing test function test.is.wholenumber ... done successfully. Executing test function test.momChangeAbout ... done successfully. Executing test function test.momIntegrated ... done successfully. Executing test function test.momSE ... done successfully. Executing test function test.safeIntegrate ... done successfully. Executing test function test.sampleMoments ... done successfully. Executing test function test.tsHessian ... done successfully. [1] "D:/RCompile/CRANincoming/R-devel/lib/DistributionUtils/unitTests/report" RUNIT TEST PROTOCOL -- Wed Aug 23 04:52:34 2023 *********************************************** Number of test functions: 12 Number of errors: 0 Number of failures: 0 1 Test Suite : DistributionUtils unit testing - 12 test functions, 0 errors, 0 failures There were 50 or more warnings (use warnings() to see the first 50) > > proc.time() user system elapsed 0.76 5.32 7.53