easystats / see

:art: Visualisation toolbox for beautiful and publication-ready figures
https://easystats.github.io/see/
Other
890 stars 43 forks source link

Try to fix warnings in examples and vignettes #310

Closed strengejacke closed 11 months ago

codecov[bot] commented 1 year ago

Codecov Report

Merging #310 (1769dfe) into main (ef50b6b) will increase coverage by 0.01%. The diff coverage is 33.33%.

:exclamation: Current head 1769dfe differs from pull request most recent head 71a0410. Consider uploading reports for the commit 71a0410 to get more accurate results

@@            Coverage Diff             @@
##             main     #310      +/-   ##
==========================================
+ Coverage   44.34%   44.35%   +0.01%     
==========================================
  Files          66       66              
  Lines        4758     4759       +1     
==========================================
+ Hits         2110     2111       +1     
  Misses       2648     2648              
Files Coverage Δ
R/plot.hdi.R 77.86% <ø> (ø)
R/plot.parameters_brms_meta.R 0.00% <ø> (ø)
R/plot.parameters_pca.R 87.87% <100.00%> (+0.18%) :arrow_up:
R/plot.si.R 43.83% <ø> (ø)
R/utils.R 68.91% <ø> (ø)
R/plot.parameters_model.R 27.21% <0.00%> (-0.09%) :arrow_down:
R/plot.visualisation_recipe.R 23.07% <50.00%> (+1.64%) :arrow_up:
R/print.check_model.R 0.00% <0.00%> (ø)
strengejacke commented 1 year ago

@IndrajeetPatil How can I reproduce this issue with a longer traceback, so I know which seq_len() code is affected?

Quitting from lines 285-295 [unnamed-chunk-22] (parameters.Rmd)
Error in `map()`:
ℹ In index: 6.
ℹ With name: vignettes/parameters.Rmd.
Caused by error in `seq_len()`:
! (converted from warning) first element used of 'length.out' argument
Backtrace:
 1. parameters::model_parameters(ma)
 2. parameters:::model_parameters.rma(ma)
 3. parameters:::.model_parameters_generic(...)
 4. parameters:::.add_model_parameters_attributes(...)
 5. parameters:::.format_value_labels(params, model)
 6. insight::get_data(model, source = "mf", verbose = FALSE)
Execution halted