* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/energyGOF.Rcheck’ * using R Under development (unstable) (2025-12-01 r89083) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘energyGOF/DESCRIPTION’ ... OK * this is package ‘energyGOF’ version ‘0.1’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘energyGOF’ can be installed ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... OK * checking examples with --run-donttest ... ERROR Running examples in ‘energyGOF-Ex.R’ failed The error most likely occurred in: > ### Name: energyGOF.test > ### Title: Goodness-of-fit tests for univariate data via energy > ### Aliases: energyGOF.test egof.test > > ### ** Examples > > x <- rnorm(10) > y <- rt(10, 4) > > ## Composite energy goodness-of-fit test (test for Normality with unknown > ## parameters) > > energyGOF.test(x, "normal", nsim = 10) Composite energy goodness-of-fit test (conditional on x) data: x E-statistic = 0.30649, Distribution = Normal, p-value = 0.6 sample estimates: mean sd 0.1322028 0.7805860 > > ## Simple energy goodness-of-fit test (test for Normality with known > ## parameters). egof.test is an alias for energyGOF.test. > > egof.test(x, "normal", nsim = 10, mean = 0, sd = 1) Simple energy goodness-of-fit test data: x E-statistic = 0.48276, Distribution = Normal, mean = 0, sd = 1, p-value = 0.9 > > ## Alternatively, use the energyGOFdist generic directly so that you do not need > ## to pass parameter names into `...` > > energyGOFdist(x, normal_dist(0, 1), nsim = 10) Simple energy goodness-of-fit test data: x E-statistic = 0.48276, Distribution = Normal, mean = 0, sd = 1, p-value = 0.7 > > ## Conduct a two-sample test > > egof.test(x, y, 0) Univariate 2-sample E-test of equal distributions data: sample sizes 10 10, replicates 0 E-statistic = 0.81733, p-value = 1 > > ## Conduct a test against any continuous distribution function > > egof.test(x, pcauchy, 0) Simple energy goodness-of-fit test data: x E-statistic = 0.29105, Distribution = Uniform, min = 0, max = 1, p-value = NA > > ## Simple energy goodness-of-fit test for Weibull distribution > > y <- rweibull(10, 1, 1) > energyGOF.test(y, "weibull", shape = 1, scale = 3, nsim = 10) Simple energy goodness-of-fit test data: x E-statistic = 13.71, Distribution = Weibull, shape = 1, scale = 3, p-value < 2.2e-16 > > ## Alternatively, use the energyGOFdist generic directly, which is slightly less > ## verbose. egofd is an alias for energyGOFdist. > > egofd(y, weibull_dist(1, 3), nsim = 10) Simple energy goodness-of-fit test data: x E-statistic = 13.71, Distribution = Weibull, shape = 1, scale = 3, p-value < 2.2e-16 > > ## Conduct a generalized GOF test. `pow` is the exponent *s* in the generalized > ## energy statistic. Pow is only necessary when testing Cauchy, and > ## Pareto distributions. If you don't set a pow, there is a default for each > ## of the distributions, but the default isn't necessarily better than any > ## other number. > > egofd(rcauchy(100), + cauchy_dist(location = 0, scale = 1, pow = 0.5), + nsim = 10) Simple energy goodness-of-fit test data: x E-statistic = 2.0657, Distribution = Cauchy, location = 0, scale = 1, pow = 0.5, p-value = 0.4 > > ## energyGOF does not support tests with a mix of known and unknown > ## parameters, so this will result in an error. > > ## No test: > energyGOF.test(x, "normal", mean = 0, nsim = 10) # sd is missing Error in is_composite(mean, sd) : Partially composite tests not implemented. Calls: energyGOF.test ... energyGOF.test.character -> char_to_dist -> normal_dist -> is_composite Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [27s/27s] [27s/27s] OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/blackswan/ripley/R/packages/tests-devel/energyGOF.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 1:05.15, 50.97 + 13.41