* using log directory ‘/Volumes/Builds/packages/big-sur-arm64/results/4.5/BondValuation.Rcheck’ * using R Under development (unstable) (2025-01-24 r87627) * using platform: aarch64-apple-darwin20 * R was compiled by Apple clang version 14.0.0 (clang-1400.0.29.202) GNU Fortran (GCC) 14.2.0 * running under: macOS Ventura 13.4 * using session charset: UTF-8 * checking for file ‘BondValuation/DESCRIPTION’ ... OK * this is package ‘BondValuation’ version ‘0.1.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 ‘BondValuation’ can be installed ... [7s/8s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-macos-arm64/BondValuation-00install.html' for details. * used C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ * used C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ * used SDK: ‘MacOSX11.3.sdk’ * checking installed package size ... 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 ... [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 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 ... [4s/4s] OK * checking Rd files ... [0s/0s] OK * 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/0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking compiled code ... OK * checking examples ... [0s/0s] ERROR Running examples in ‘BondValuation-Ex.R’ failed The error most likely occurred in: > ### Name: AnnivDates > ### Title: AnnivDates (time-invariant properties and temporal structure) > ### Aliases: AnnivDates > > ### ** Examples > > data(SomeBonds2016) > > # Applying the function AnnivDates to the data frame SomeBonds2016. > system.time( + FullAnalysis<-apply(SomeBonds2016[,c('Issue.Date','Mat.Date','CpY.Input','FIPD.Input', + 'LIPD.Input','FIAD.Input','RV.Input','Coup.Input','DCC.Input','EOM.Input')],1,function(y) + AnnivDates(y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],RegCF.equal=1)), + gcFirst = TRUE) Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The issue date (Em) is supplied as a string of class "character" in the format "yyyy-mm-dd". It is converted to class "Date" using the command "as.Date(Em,"%Y-%m-%d")" and processed as Em = 2016-03-24 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The maturity date (Mat) is supplied as a string of class "character" in the format "yyyy-mm-dd". It is converted to class "Date" using the command "as.Date(Mat,"%Y-%m-%d")" and processed as Mat = 2023-04-01 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The first interest payment date (FIPD) is supplied as a string of class "character" in the format "yyyy-mm-dd". It is converted to class "Date" using the command "as.Date(FIPD,"%Y-%m-%d")" and processed as FIPD = 2016-10-01 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The last interest payment date (LIPD) is supplied as a string of class "character" in the format "yyyy-mm-dd". It is converted to class "Date" using the command "as.Date(LIPD,"%Y-%m-%d")" and processed as LIPD = 2022-10-01 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The first interest accrual date (FIAD) is supplied as a string of class "character" in the format "yyyy-mm-dd". It is converted to class "Date" using the command "as.Date(FIAD,"%Y-%m-%d")" and processed as FIAD = 2016-03-24 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The number of interest payments per year (CpY) is supplied as a number of class "character". Its conversion to class numeric results in CpY = 12 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The redemption value (RV) is supplied as a number of class "character". Its conversion to class numeric results in RV = 100 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The nominal interest rate p.a. (Coup) is supplied as a number of class "character". Its conversion to class numeric results in Coup = 5.02 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The day count convention identifier (DCC) is supplied as a number of class "character". Its conversion to class numeric results in DCC = 14 . Warning in InputFormatCheck(Em = Em, Mat = Mat, CpY = CpY, FIPD = FIPD, : The End-of-Month rule boolean (EOM) is supplied as a number of class "character". Its conversion to class numeric results in EOM = 1 . Warning in AnnivDates(y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], : The provided EOM = 1 conflicts with one or several provided calendar dates. EOM is set 0 . Warning in DIST(c(DCC, Atom1AD_PreFin, Atom2AD_PreFin, Atom3AD_PreFin, Atom1AD_PreFin, : subscript out of bounds (index 20 >= vector size 20) Warning in DIST(c(DCC, Atom1AD_PreFin, Atom2AD_PreFin, Atom3AD_PreFin, Atom1AD_PreFin, : subscript out of bounds (index 21 >= vector size 20) Warning in DIST(c(DCC, Atom1AD_PreFin, Atom2AD_PreFin, Atom3AD_PreFin, Atom1AD_PreFin, : subscript out of bounds (index 20 >= vector size 20) Warning in DIST(c(DCC, Atom1AD_PreFin, Atom2AD_PreFin, Atom3AD_PreFin, Atom1AD_PreFin, : subscript out of bounds (index 21 >= vector size 20) Error in if (index_LIPD >= 1) { : argument is of length zero Calls: system.time -> apply -> FUN -> AnnivDates Timing stopped at: 0.012 0.001 0.018 Execution halted * checking PDF version of manual ... [4s/5s] OK * DONE Status: 1 ERROR * using check arguments '--no-clean-on-error ' * elapsed time (check, wall clock): 0:31