* using log directory ‘/Users/ripley/R/packages/tests-devel/tidyactuarial.Rcheck’ * using R Under development (unstable) (2026-05-27 r90083) * using platform: aarch64-apple-darwin25.5.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.1.1.101) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.5 * using session charset: UTF-8 * current time: 2026-05-29 04:47:54 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘tidyactuarial/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘tidyactuarial’ version ‘0.1.3’ * 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 ‘tidyactuarial’ can be installed ... OK * 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... ERROR Running examples in ‘tidyactuarial-Ex.R’ failed The error most likely occurred in: > ### Name: mc_annuity > ### Title: Compute simulated present values for life annuities > ### Aliases: mc_annuity > > ### ** Examples > > life_table <- tibble::tibble( + age = 40:100, + qx = seq(0.002, 1, length.out = 61) + ) > > # Annual whole life annuity-due > life_table |> + simulate_lifetime(age = 40, n_sim = 1000, seed = 123) |> + mc_annuity( + rate = 0.05, + annuity = "whole_life", + payment = 1, + payments_per_year = 1, + timing = "due" + ) # A tibble: 1,000 × 20 sim_id age method fractional Kx Tx rate interest_type m 1 1 40 inverse udd 6 6.27 0.05 effective 1 2 2 40 inverse udd 13 13.6 0.05 effective 1 3 3 40 inverse udd 8 8.16 0.05 effective 1 4 4 40 inverse udd 15 15.9 0.05 effective 1 5 5 40 inverse udd 17 17.8 0.05 effective 1 6 6 40 inverse udd 2 2.48 0.05 effective 1 7 7 40 inverse udd 9 9.77 0.05 effective 1 8 8 40 inverse udd 15 15.3 0.05 effective 1 9 9 40 inverse udd 9 9.07 0.05 effective 1 10 10 40 inverse udd 8 8.44 0.05 effective 1 # ℹ 990 more rows # ℹ 11 more variables: effective_rate , discount_factor , # annuity , payment , payments_per_year , # deferral_years , timing , n_payments , # first_payment_time , last_payment_time , pv_annuity > > # Monthly whole life annuity-due with total annual payment equal to 1 > life_table |> + simulate_lifetime( + age = 40, + n_sim = 1000, + fractional = "udd", + seed = 123 + ) |> + mc_annuity( + rate = 0.05, + annuity = "whole_life", + payment = 1 / 12, + payments_per_year = 12, + timing = "due" + ) # A tibble: 1,000 × 20 sim_id age method fractional Kx Tx rate interest_type m 1 1 40 inverse udd 6 6.27 0.05 effective 1 2 2 40 inverse udd 13 13.6 0.05 effective 1 3 3 40 inverse udd 8 8.16 0.05 effective 1 4 4 40 inverse udd 15 15.9 0.05 effective 1 5 5 40 inverse udd 17 17.8 0.05 effective 1 6 6 40 inverse udd 2 2.48 0.05 effective 1 7 7 40 inverse udd 9 9.77 0.05 effective 1 8 8 40 inverse udd 15 15.3 0.05 effective 1 9 9 40 inverse udd 9 9.07 0.05 effective 1 10 10 40 inverse udd 8 8.44 0.05 effective 1 # ℹ 990 more rows # ℹ 11 more variables: effective_rate , discount_factor , # annuity , payment , payments_per_year , # deferral_years , timing , n_payments , # first_payment_time , last_payment_time , pv_annuity > > # Quarterly temporary life annuity-immediate > life_table |> + simulate_lifetime( + age = 40, + n_sim = 1000, + fractional = "udd", + seed = 123 + ) |> + mc_annuity( + rate = 0.05, + annuity = "temporary", + term = 20, + payment = 1 / 4, + payments_per_year = 4, + timing = "immediate" + ) # A tibble: 1,000 × 21 sim_id age method fractional Kx Tx rate interest_type m 1 1 40 inverse udd 6 6.27 0.05 effective 1 2 2 40 inverse udd 13 13.6 0.05 effective 1 3 3 40 inverse udd 8 8.16 0.05 effective 1 4 4 40 inverse udd 15 15.9 0.05 effective 1 5 5 40 inverse udd 17 17.8 0.05 effective 1 6 6 40 inverse udd 2 2.48 0.05 effective 1 7 7 40 inverse udd 9 9.77 0.05 effective 1 8 8 40 inverse udd 15 15.3 0.05 effective 1 9 9 40 inverse udd 9 9.07 0.05 effective 1 10 10 40 inverse udd 8 8.44 0.05 effective 1 # ℹ 990 more rows # ℹ 12 more variables: effective_rate , discount_factor , # annuity , payment , payments_per_year , term , # deferral_years , timing , n_payments , # first_payment_time , last_payment_time , pv_annuity > > # Monthly joint-life annuity using a multiple-life status > life_table |> + simulate_lifetimes( + ages = c(60, 58), + n_sim = 1000, + fractional = "udd", + seed = 123 + ) |> + mc_multilife_status(status = "joint_life") |> + mc_annuity( + rate = 0.04, + annuity = "whole_life", + payment = 1 / 12, + payments_per_year = 12, + timing = "due", + k_col = "K_status", + tx_col = "T_status" + ) Error in findInterval(x = u, vec = c(0, dist$cdf), rightmost.closed = TRUE) : 'vec' must be sorted non-decreasingly and not contain NAs Calls: mc_annuity ... -> -> simulate_lifetime -> findInterval Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/tidyactuarial.Rcheck/00check.log’ for details. 36.65 real 30.73 user 4.77 sys