R version 4.5.0 beta (2025-03-27 r88065 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 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) + + path <- system.file("unitTests", package = pkg) + + stopifnot(file.exists(path), file.info(path.expand(path))$isdir) + + source(file.path(path, "runTests.R"), echo = TRUE) + } > if (require("RUnit", quietly = TRUE)) { + if (Sys.getenv("RCMDCHECK") == "FALSE") { + level <- Sys.getenv("LEVEL") + pkg <- Sys. .... [TRUNCATED] Executing test function test.dnl ... done successfully. Executing test function test.pnl ... done successfully. Executing test function test.qnl ... done successfully. Executing test function test.rnl ... done successfully. Executing test function test.millsR ... done successfully. Executing test function test.nlCheckPars ... done successfully. Executing test function test.nlFit ... done successfully. Executing test function test.nlFitStart ... done successfully. Executing test function test.nlKurt ... done successfully. Executing test function test.nlMean ... done successfully. Executing test function test.nlSkew ... done successfully. Executing test function test.nlVar ... done successfully. Executing test function test.summary.nlFit ... done successfully. [1] "D:/RCompile/CRANincoming/R-devel/lib/NormalLaplace/unitTests/report" RUNIT TEST PROTOCOL -- Fri Mar 28 11:06:05 2025 *********************************************** Number of test functions: 13 Number of errors: 0 Number of failures: 0 1 Test Suite : NormalLaplace unit testing - 13 test functions, 0 errors, 0 failures There were 20 warnings (use warnings() to see them) > > proc.time() user system elapsed 3.56 0.26 3.79