* using log directory ‘/srv/hornik/tmp/CRAN/DescTools.Rcheck’ * using R Under development (unstable) (2024-01-16 r85812) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 17.0.6 (3) Debian flang-new version 17.0.6 (3) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘DescTools/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘DescTools’ version ‘0.99.53’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [8s/12s] NOTE Maintainer: ‘Andri Signorell ’ Suggests or Enhances not in mainstream repositories: RDCOMClient Availability using Additional_repositories specification: RDCOMClient yes http://www.omegahat.net/R Found the following (possibly) invalid URLs: URL: http://circos.ca/presentations/articles/vis_tables1/ From: man/PlotCirc.Rd Status: Error Message: server certificate verification failed. CAfile: none CRLfile: none (Status without verification: OK) URL: https://datacatalog.worldbank.org/search/dataset/0037652 From: man/d.countries.Rd Status: 404 Message: Not Found URL: https://www.ine.pt/revstat/pdf/rs120203.pdf From: man/PoissonCI.Rd Status: Error Message: GnuTLS recv error (-110): The TLS connection was non-properly terminated. * checking package namespace information ... OK * checking package dependencies ... NOTE Package suggested but not available for checking: ‘RDCOMClient’ * 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 ‘DescTools’ can be installed ... [40s/40s] OK * used C compiler: ‘Debian clang version 17.0.6 (3)’ * used Fortran compiler: ‘Debian flang-new version 17.0.6 (3)’ * used C++ compiler: ‘Debian clang version 17.0.6 (3)’ * checking C++ specification ... OK Not all R platforms support C++17 * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] OK * checking whether startup messages can be suppressed ... [1s/1s] OK * checking use of S3 registration ... 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 ... [47s/47s] OK * checking Rd files ... [2s/2s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [0s/0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking usage of KIND in Fortran files ... OK * checking sizes of PDF files under ‘inst/doc’ ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [69s/69s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [1s/1s] ERROR Running ‘TestsPseudoR2.R’ [0s/0s] Running ‘misc.R’ [1s/1s] Running the tests in ‘tests/misc.R’ failed. Complete output: > > > library(DescTools) > > # stopifnot(exprs = { > # all.equal(pretty10exp(10^expo, drop.1=TRUE, sub10 = c(-2, 2)), > # expression(10^-3, 0.01, 0.1, 1, 10, 100, 10^3, 10^4)) > # > # identical(pretty10exp(10^expo, drop.1=TRUE, sub10 = c(-2, 2), lab.type="latex"), > # c("$10^{-3}$", "0.01", "0.1", "1", "10", "100", > # "$10^{3}$", "$10^{4}$")) > # ## gave exponential format for "latex" case. > # }) > # > > set.seed(45) > (z <- as.numeric(names(w <- table(x <- sample(-10:20, size=50, r=TRUE))))) [1] -9 -8 -7 -6 -5 -4 -3 -2 0 3 4 5 6 7 8 9 10 12 13 15 16 17 18 19 20 > > stopifnot(all( + identical(Mode(5), structure(NA_real_, freq = NA_integer_)) + , identical(Mode(NA), structure(NA_real_, freq = NA_integer_)) + , identical(Mode(c(NA, NA)), structure(NA_real_, freq = NA_integer_)) + , identical(Mode(c(NA, 0:5)), structure(NA_real_, freq = NA_integer_)) + , identical(Mode(c(NA, 0:5), na.rm=TRUE), structure(NA_real_, freq = NA_integer_)) + , identical(Mode(c(NA, 0:5, 5), na.rm=TRUE), structure(5, freq = 2L)) + , identical(Mode(c(0:5, 4, 5, 6)), structure(c(4, 5), freq = 2L)) + , identical(Mode(c(0:8, rep(c(1,3, 8), each=5))), structure(c(1, 3, 8), freq = 6L)) + + , all.equal(Kurt(x = z, weights = w, method = 1), Kurt(x = x, method = 1)) + , all.equal(Kurt(x = z, weights = w, method = 2), Kurt(x = x, method = 2)) + , all.equal(Kurt(x = z, weights = w, method = 3), Kurt(x = x, method = 3)) + + , all.equal(Skew(x = z, weights = w, method = 1), Skew(x = x, method = 1)) + , all.equal(Skew(x = z, weights = w, method = 2), Skew(x = x, method = 2)) + , all.equal(Skew(x = z, weights = w, method = 3), Skew(x = x, method = 3)) + + , all.equal(CoefVar(z, weights = w, unbiased = TRUE), CoefVar(x, unbiased = TRUE)) + , all.equal(CoefVar(z, weights = w, unbiased = FALSE), CoefVar(x, unbiased = FALSE)) + + , all.equal(MeanAD(x), MeanAD(z, w)) + , all.equal(MeanAD(x, center = Median), MeanAD(z, w, center = Median)) + , all.equal(MeanAD(x, center = 7), MeanAD(z, w, center = 7)) + + )) > > > > # test Desc base function > > x <- c(rnorm(n = 100, sd = 10), NA) > z <- Desc(x)[[1]] > > stopifnot(all( + identical(z$length, length(x)) + , identical(z$NAs, sum(is.na(x))) + , identical(z$unique, length(unique(na.omit(x)))) + , identical(z$`0s`, sum(x==0, na.rm=TRUE)) + , IsZero(z$mean - mean(x, na.rm=TRUE)) + , identical(unname(z$quant), + unname(quantile(x, na.rm=TRUE, probs=c(0,0.05,.1,.25,.5,.75,.9,.95,1)))) + , identical(z$range, diff(range(x, na.rm=TRUE))) + , IsZero(z$sd - sd(x, na.rm=TRUE)) + , IsZero(z$vcoef - sd(x, na.rm=TRUE)/mean(x, na.rm = TRUE)) + , identical(z$mad, mad(x, na.rm=TRUE)) + , identical(z$IQR, IQR(x, na.rm=TRUE)) + )) Error: all(identical(z$length, length(x)), identical(z$NAs, sum(is.na(x))), .... is not TRUE Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [1s/1s] OK * checking PDF version of manual ... [17s/17s] OK * checking HTML version of manual ... [11s/10s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 2 NOTEs