- using R Under development (unstable) (2025-12-06 r89118 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- 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 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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'WRI' can be installed ... OK
See the install log for details.
- used C++ compiler: 'g++.exe (GCC) 14.3.0'
- checking installed package size ... OK
- checking package directory ... 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [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 ... [5s] OK
- checking Rd files ... [1s] 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 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] 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 pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [6s] ERROR
Running examples in 'WRI-Ex.R' failed
The error most likely occurred in:
> ### 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
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [4s] ERROR
Running 'testthat.R' [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 ... [6s] ERROR
Error(s) in re-building vignettes:
--- re-building 'WRI-vignette.Rmd' using rmarkdown
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 ... [20s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 3 ERRORs, 1 NOTE