GoreLab / waves

R package for Vis-NIR spectral analysis
https://gorelab.github.io/waves/
Other
6 stars 6 forks source link

Reduce cyclomatic complexity of test_spectra() function to less than 15 #26

Open jmh579 opened 9 months ago

jmh579 commented 9 months ago

From usethis::linter():

[cyclocomp_linter] Functions should have cyclomatic complexity of less than 15, this has 32.

There are too many paths through the function, so it should be simplified.

jmh579 commented 9 months ago

Same problem with train_spectra(), but this one is even worse with a current cyclomatic complexity of 39!