- using R Under development (unstable) (2026-05-31 r90090)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 22.1.6 (1)
Debian flang version 22.1.6 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-06-01 18:16:52 UTC
- checking for file ‘QuantBondCurves/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘QuantBondCurves’ version ‘0.3.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/2s] 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 ‘QuantBondCurves’ can be installed ... OK
See the install log for details.
- 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/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [12s/16s] OK
- checking Rd files ... [0s/1s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [15s/18s] ERROR
Running examples in ‘QuantBondCurves-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: valuation.bonds
> ### Title: Bond valuation
> ### Aliases: valuation.bonds
>
> ### ** Examples
>
> valuation.bonds(maturity = "2026-06-01", coupon.rate = 0.06, rates = 0.08,
+ analysis.date = "2022-06-01")
[1] 0.9337049
> valuation.bonds(maturity = "2026-06-01", coupon.rate = 0.06, rates = rep(0.08,4),
+ analysis.date = "2022-06-01", rate.type = 0)
[1] 0.923377
> valuation.bonds(maturity = "2026-06-01", analysis.date= "2025-02-27",
+ coupon.rate = c(0.06, 0.062, 0.063, 0.065, 0.066, 0.068),
+ rates = c(0.08, 0.082, 0.078, 0.09, 0.077, 0.085),
+ asset.type = "IBR")
[1] 0.9936186
> valuation.bonds(maturity = "2026-06-01", coupon.rate = 0.06,
+ rates = 0.08, asset.type = "IBR", freq = 4,
+ spread = 0.03)
Warning in max.default(NA_real_, NA_real_, NA_real_, na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
Error in data.frame(c(analysis.date, as.character(dates[-length(dates)])), :
arguments imply differing number of rows: 1, 0
Calls: valuation.bonds -> coupons -> apply -> data.frame
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [173s/223s] OK
Running ‘testthat.R’ [173s/223s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [60s/82s] OK
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [3s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR