- using R Under development (unstable) (2025-12-12 r89163)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-9) 15.2.0
GNU Fortran (Debian 15.2.0-9) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘WRI/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘WRI’ version ‘0.2.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- 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 ‘WRI’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘g++-15 (Debian 15.2.0-9) 15.2.0’
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/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 ... [6s/10s] OK
- checking Rd files ... [0s/0s] NOTE
checkRd: (-1) confidenceBands.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:42: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:43: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:44: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:48: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:49: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:50: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:51: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:54: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:55: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:56: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:57: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) confidenceBands.Rd:58: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) globalFtest.Rd:46: Lost braces in \itemize; meant \describe ?
checkRd: (-1) globalFtest.Rd:47: Lost braces in \itemize; meant \describe ?
checkRd: (-1) globalFtest.Rd:48: Lost braces in \itemize; meant \describe ?
checkRd: (-1) globalFtest.Rd:49: Lost braces in \itemize; meant \describe ?
checkRd: (-1) globalFtest.Rd:35: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) globalFtest.Rd:36: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) globalFtest.Rd:37: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) globalFtest.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) partialFtest.Rd:29: Lost braces in \itemize; meant \describe ?
checkRd: (-1) partialFtest.Rd:30: Lost braces in \itemize; meant \describe ?
checkRd: (-1) simulate_quantile_curves.Rd:19: Lost braces; missing escapes or markup?
19 | {quan_obs} {n-by-m matrix of quantile functions}
| ^
checkRd: (-1) wass_regress.Rd:38: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) wass_regress.Rd:39: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) wass_regress.Rd:40: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) wass_regress.Rd:41: Lost braces in \itemize; \value handles \item{}{} directly
- 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 line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/8s] ERROR
Running examples in ‘WRI-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: confidenceBands
> ### Title: Confidence Bands for Wasserstein Regression
> ### Aliases: confidenceBands
>
> ### ** Examples
>
> alpha = 2
> beta = 1
> n = 50
> x1 = runif(n)
> t_vec = unique(c(seq(0, 0.05, 0.001), seq(0.05, 0.95, 0.05), seq(0.95, 1, 0.001)))
> set.seed(1)
> quan_obs = simulate_quantile_curves(x1, alpha, beta, t_vec)
> Xfit_df = data.frame(x1 = x1)
> res = wass_regress(rightside_formula = ~., Xfit_df = Xfit_df,
+ Ytype = 'quantile', Ymat = quan_obs, Sup = t_vec)
Error in r[i1, , drop = FALSE] - r[if (lag < (len <- nrow(r))) -len:-(len - :
non-numeric argument to binary operator
Calls: wass_regress -> diff -> diff.default
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
WARp 4.322 0.298 6.498
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [3s/4s] ERROR
Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(WRI)
>
> test_check("WRI")
Saving _problems/test-wass_regress-28.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 9 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-wass_regress.R:27:9'): function wass_regress works for a trivial example ──
Error in `r[i1, , drop = FALSE] - r[if (lag < (len <- nrow(r))) -len:-(len - lag + 1L) else i0, , drop = FALSE]`: non-numeric argument to binary operator
Backtrace:
▆
1. └─WRI::wass_regress(...) at test-wass_regress.R:27:9
2. ├─base::diff(t(Ytype))
3. └─base::diff.default(t(Ytype))
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 9 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/6s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘WRI-vignette.Rmd’ using rmarkdown
strokeCTdensity package:WRI R Documentation
_ S_ t_ r_ o_ k_ e _ d_ a_ t_ a: _ c_ l_ i_ n_ i_ c_ a_ l, _ r_ a_ d_ i_ o_ l_ o_ g_ i_ c_ a_ l _ s_ c_ a_ l_ a_ r _ v_ a_ r_ i_ a_ b_ l_ e_ s _ a_ n_ d _ d_ e_ n_ s_ i_ t_ y _ c_ u_ r_ v_ e_ s
_ o_ f _ t_ h_ e _ h_ e_ m_ a_ t_ o_ m_ a _ o_ f _ 3_ 9_ 3 _ s_ t_ r_ o_ k_ e _ p_ a_ t_ i_ e_ n_ t_ s
_ D_ e_ s_ c_ r_ i_ p_ t_ i_ o_ n:
Stroke data: clinical, radiological scalar variables and density
curves of the hematoma of 393 stroke patients
_ F_ o_ r_ m_ a_ t:
a list of the following three fields:
densityCurve:
393-by-101 head CT hematoma densities as distributional
response
densitySupport:
length 101 common support vector
predictors:
393-by-9 matrix containing 9 scalar predictors
_ R_ e_ f_ e_ r_ e_ n_ c_ e_ s:
'Wasserstein F-tests and confidence bands for the Frechet
regression of density response curves, Alexander Petersen, Xi Liu
and Afshin A. Divani, 2019'
Quitting from WRI-vignette.Rmd:80-82 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `r[i1, , drop = FALSE] - r[if (lag < (len <- nrow(r))) -len:-(len - lag +
1L) else i0, , drop = FALSE]`:
! non-numeric argument to binary operator
---
Backtrace:
▆
1. └─WRI::wass_regress(...)
2. ├─base::diff(t(Ytype))
3. └─base::diff.default(t(Ytype))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'WRI-vignette.Rmd' failed with diagnostics:
non-numeric argument to binary operator
--- failed re-building ‘WRI-vignette.Rmd’
SUMMARY: processing the following file failed:
‘WRI-vignette.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs, 1 NOTE