- local Apple Silicon (M1), macOS 26.5.1 Tahoe, R 4.6.0
- GitHub Actions CI:
- ubuntu-24.04 (release, devel)
- windows-latest (release)
- macOS-latest (release)
- R-hub
- linux (R-devel)
- macos (R-devel)
- windows (R-devel)
0 errors | 0 warnings | 0 notes
Minimum R version bumped from 3.5 to 4.1.0 due to use of the \()
lambda shorthand syntax introduced in R 4.1.0.
This is a maintenance release that fixes several bugs in train_spectra(),
test_spectra(), predict_spectra(), and internal utility functions:
- The final RF model was trained with
ntree = tune.length(≤5 trees) instead of the standard 500; the tunedmtrywas also not applied to the final model - The final SVM model incorrectly included
unique.idas a predictor - The final PLS model used
ncomp = tune.lengthinstead of the best value identified during training iterations;predict_spectra()now readsncompdirectly from the model object train_spectra()crashed withundefined columns selectedwhencv.schemewas used, due to column indices computed beforeformat_cv()removed the genotype column- When
cv.schemeis used, the final model was trained on incorrect data (either all trials combined or trial1 alone); it now callsformat_cv()to use the scheme-appropriate training set set.seed()was called aftercreateDataPartition(), making stratified train/test splits non-reproducible even when a seed was setbest.model.metricandseedwere accepted bytest_spectra()but never forwarded totrain_spectra(), silently ignoring user input- SVM importance output was corrupted (1×1 matrix instead of NULL) when running with multiple pretreatments
- Invalid
ntreeandmtryarguments were passed topredict.randomForest(), where they are silently ignored
All existing user-facing APIs remain fully compatible.
There are currently no downstream dependencies for this package.