Skip to content

"Subscript out of bounds" error when testing package distionary #90

@vincenzocoia

Description

@vincenzocoia

When running autotest_package() for the distionary package, I'm getting an error that I suspect should not be there because all examples run without error when I run devtools::check(). (The distionary commit is the most recent one, 158520a):

> library(autotest)
> getwd()
[1] "/Users/vcoia/R-packages/distionary"
> x <- autotest_package()
★ Extracting example code from 46 .Rd files
  |====================================================================================================================================| 100%
✔ Extracted example code
★ Converting 43 examples to yaml
  |====================================================================================================================================| 100%
✔ Converted examples to yaml
── autotesting distionary ──

✔ [1 / 48]: eval_cdf
✔ [2 / 48]: eval_chf
✔ [3 / 48]: eval_density
✔ [4 / 48]: distribution
✔ [5 / 48]: dst_bern
✔ [6 / 48]: dst_beta
✔ [7 / 48]: dst_binom
✔ [8 / 48]: dst_cauchy
✔ [9 / 48]: dst_chisq
✔ [10 / 48]: dst_degenerate
✔ [11 / 48]: dst_exp
✔ [12 / 48]: dst_f
✔ [13 / 48]: dst_gamma
✔ [14 / 48]: dst_geom
✔ [15 / 48]: dst_gev
✔ [16 / 48]: dst_gev
✔ [17 / 48]: dst_gev
✔ [18 / 48]: dst_gpd
✔ [19 / 48]: dst_gpd
✔ [20 / 48]: dst_gpd
✔ [21 / 48]: dst_hyper
✔ [22 / 48]: dst_lnorm
✔ [23 / 48]: dst_lp3
✔ [24 / 48]: dst_nbinom
✔ [25 / 48]: dst_norm
Error in strsplit(yaml2[grep(ystr, yaml2)], ystr)[[1]] : 
  subscript out of bounds

Session Info

> sessionInfo()
R version 4.4.3 (2025-02-28)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.2

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Los_Angeles
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] vctrs_0.6.5        rlang_1.1.5        ellipsis_0.3.2     checkmate_2.3.2    autotest_0.0.2.211 devtools_2.4.5     usethis_3.0.0     
[8] distionary_0.1.0  

loaded via a namespace (and not attached):
 [1] utf8_1.2.4        xml2_1.3.6        stringi_1.8.4     digest_0.6.37     magrittr_2.0.3    evaluate_1.0.1    pkgload_1.4.0    
 [8] fastmap_1.2.0     rprojroot_2.0.4   processx_3.8.4    sessioninfo_1.2.2 pkgbuild_1.4.5    backports_1.5.0   urlchecker_1.0.1 
[15] ps_1.8.1          promises_1.3.2    purrr_1.0.2       fansi_1.0.6       cli_3.6.4         shiny_1.10.0      commonmark_1.9.2 
[22] remotes_2.5.0     withr_3.0.2       cachem_1.1.0      yaml_2.3.10       tools_4.4.3       memoise_2.0.1     httpuv_1.6.15    
[29] R6_2.5.1          mime_0.12         lifecycle_1.0.4   stringr_1.5.1     fs_1.6.5          htmlwidgets_1.6.4 miniUI_0.1.1.1   
[36] pkgconfig_2.0.3   desc_1.4.3        callr_3.7.6       clipr_0.8.0       pillar_1.9.0      later_1.3.2       glue_1.8.0       
[43] profvis_0.4.0     Rcpp_1.0.13-1     xfun_0.49         tibble_3.2.1      rstudioapi_0.17.1 knitr_1.49        xtable_1.8-4     
[50] htmltools_0.5.8.1 rmarkdown_2.29    compiler_4.4.3    roxygen2_7.3.2   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions