Changelog
Source:NEWS.md
slideimp 1.3.0
Breaking changes
Dependsis nowR (>= 4.4.0)(was 4.3.0), for C++17.Every function that takes
objrequires a double matrix. 1.2.0 converted integer and logical matrices.The
na_checkargument ofknn_imp(),pca_imp(),slide_imp()andgroup_imp()is removed. UseanyNA()on the result instead.mean_imp_col()is removed.col_vars()loses itscoresargument and runs on one thread.subsetnow narrows the result inknn_imp(),slide_imp()andgroup_imp(): the result holds only the selected columns, in input order. Inknn_imp(), an unknown name, a repeated name, names on an input without column names, and an emptysubsetare errors; 1.2.0 dropped an unknown name with a message and returned the input for an emptysubset.slide_imp()refuses an unknown name and an emptysubset, underdry_run = TRUEtoo.tune_imp()with.f = "slide_imp"scores the same cells as before.mat_miss()returns an integer vector whenprop = FALSE(still a double vector whenprop = TRUE).tune_imp()errors when a suppliedna_locposition points at a cell that is alreadyNAorNaN. Positions fromsample_na_loc()are unaffected.Many errors, messages and
print()notes are reworded. Code that matches on message text may need updating.
New features
-
Multiple imputation by Bayesian PCA, a reimplementation of the sampler of
missMDA::MIPCA()(Audigier, Husson and Josse, 2016):-
mipca()draws multiple imputations of the missing values. -
mipca_tune()chooses the rank on held-out values, andmipca_fit()fits at the tuned rank. -
mipca_finalize()andupdate()extend or finalize a resumable fit. -
mipca_flank(),mipca_flank_plan()andmipca_flank_window()impute each column on a flanking window of its neighbors. -
tf_identity(),tf_sv()andtf_biwhiten()transform the data before the fit;spectra_opts()sets the eigensolver;abb_cols()proposes columns to draw by approximate Bayesian bootstrap. - Results have
print(),summary(),as.matrix(),[andcbind()methods.
-
pca_imp()gainssubset: the result holds only the selected columns, while every eligible column still takes part in the fit.
Changes in results
knn_imp()withpost_imp = TRUEsets a cell that K-NN leaves missing to the mean of its column’s observed values. 1.2.0 took a mean that included the K-NN imputed values. These cells change value, inslide_imp()andgroup_imp()with K-NN too.The column means that
post_impandon_infeasible = "mean"set are now computed with base R’s.colMeans(), so they can differ from 1.2.0’s in the last bits.group_imp(): every group now readsobjas it was passed. 1.2.0’s sequential path wrote each group’s imputed values intoobjbefore the next group ran, so a later group could use them as observed values in its auxiliary columns.slide_imp()andgroup_imp()with PCA: a window or group whose missing target values all lie in columns thatpca_imp()leaves out is infeasible and goes throughon_infeasible, as with K-NN. 1.2.0 fitted it and set the targets to their column means.slide_imp()returns the observed cells ofobjunchanged. Where three or more windows overlapped, 1.2.0 averaged every window’s copy of a column, which could move an observed value in its last bit.pca_imp()now calls R’s BLAS and LAPACK directly instead of going through Armadillo, so its results differ from 1.2.0’s in the last digits under the exact solver, and by up to about 1e-8 under LOBPCG.pca_imp()on a matrix with no missing values returns aslideimp_resultsobject like any other call, where 1.2.0 returned the input unchanged.
Minor improvements and fixes
pca_imp()no longer crashes the R session whenncpexceeds the rank of the completed data, as with replicate samples.pca_imp(): finite input whose squares overflow stops with “the cross-product of the data is not finite; values this large overflow when squared, rescale the input”, before either solver. A LAPACK failure reads “the symmetric eigensolver failed (LAPACK dsyevr, info =)”. The 1.2.0 error “ eig_sym_selfailed to converge” is gone.pca_imp()refuses eligible columns holding more than.Machine$integer.maxmissing values.pca_imp()scans for infinities once per call rather than once pernb.initinitialization. When the input has more columns than rows, only the loadings of the columns being imputed are updated inside the EM loop.pin_blasingroup_imp()andtune_imp()now defaults toTRUE, pinning BLAS and OpenMP threads to 1 on mirai daemons; a sequential run pins nothing. RhpcBLASctl moves fromSuggeststoImports.tune_imp()under mirai sendsobjto each daemon once, withmirai::everywhere(), so memory grows with the number of daemons. bigmemory is no longer imported, and mirai must be>= 2.5.0. A new error reports whenobjdid not reach every daemon.tune_imp()with.f = "knn_imp"or"slide_imp"fails an iteration when the result is not the width of the repetition’ssubset. That happens when a daemon runs an older slideimp; 1.2.0 read the wrong cells without an error.sample_na_loc(), and sotune_imp(), no longer draws a column whose variance is above zero but below.Machine$double.eps, the thresholdpca_imp()uses for eligibility.
slideimp 1.2.0
CRAN release: 2026-06-16
Breaking changes
-
knn_imp()no longer supports Ball Tree-based imputation due to lower accuracy compared to brute-force K-NN.
New features
-
pca_imp()gained a.progressargument to display imputation progress.
Minor improvements and fixes
Fixed
pca_imp()tests that broke due to upstream changes inmissMDA::imputePCA()andFactoMineR::svd.triplet().Implemented an internal
.crate()function, a minimal version ofcarrier::crate().DESCRIPTIONnow describes the LOBPCG eigensolver and its warm-start behavior across EM iterations inpca_imp().Minor wording improvements.
Added citation information.
slideimp 1.1.0
CRAN release: 2026-05-01
Breaking changes
- Minimum R version is now 4.3.0 (was 4.1.0).
-
knn_imp()no longer caches pair-wise distances. Theuse_cacheargument has been removed.
New features
pca_imp()gained asolverargument to select the LOBPCG eigensolver, configured via the newlobpcg_control()helper.pca_imp()gained aclampargument to bound imputed values, e.g.c(0, 1)for methylation beta values. Also threaded throughslide_imp()andgroup_imp().
Minor improvements and fixes
knn_imp()now uses RcppThread instead of OpenMP, enabling parallelism on macOS.tune_imp()now infers the subset fromna_loc, speeding up tuning forknn_imp()andslide_imp().prep_groups()is now an S3 generic, replacing the previous register-on-load pattern with{slideimp.extra}.New article describing how to speed up PCA imputation by choosing
solverandthreshold.Fixed numerical tolerance check failure on CRAN’s ATLAS configuration.
slideimp 1.0.0
CRAN release: 2026-04-16
Breaking changes
group_imp()enforces stricter data validation. The requested feature subset must be a subset the object’s column names which must be a subset of the mappingdata.frame. Setallow_unmapped = TRUEto bypass errors when intersections are incomplete.group_imp()andtune_imp()now error when arguments are supplied that do not apply to the chosen imputation method, rather than silently ignoring them.knn_imp()now uses a logicaltreeargument to toggle between Ball tree (TRUE) and brute force (FALSE). KD tree is no longer supported.knn_imp()andpca_imp()gain more early errors and early exits.pca_imp()gains the samecolmaxandpost_imparguments asknn_imp().prep_groups()(formerlygroup_features()) is the new name for the grouping function. It now accepts a column name vector instead of a full matrix.sample_na_loc()(formerlyinject_na()) is now exported. The original remains accessible viaslideimp:::inject_na()for legacy code.sim_mat()now returns a matrix in sample-by-column format for immediate compatibility with other package functions.perc_NAis renamed toperc_total_na, and dimensions are now specified vian(rows) andp(columns).tune_imp()gains a unifiedmethodargument that applies to bothpca_imp()andknn_imp(), replacingpca_methodandknn_method. Therepargument is renamed ton_reps.tune_imp()results from v0.5.4 are no longer reproducible because internal NA generation now usessample_na_loc().The
khanmiss1dataset has been removed.
New features
compute_metrics()now supports data frames with aresultlist column containing truth and estimate columns, similar to yardstick.group_imp()andprep_groups()automatically look up Illumina manifests using the register-on-load pattern for{slideimp.extra}.knn_imp()gainsmax_cacheto control the internal cache size (defaults to 4GB).sim_mat()gains arhoargument to support compound symmetry correlation structures in simulated matrices.sim_mat()andtune_imp()gain dedicated print methods that provide concise summaries instead of dumping raw data to the console.slide_imp()gainslocation,flank, anddry_runarguments for fixed-window imputation, “flank mode” for features surrounding a subset, and pre-computation inspection of window statistics.tune_imp()gains granular control over NA injection vian_cols,n_rows,num_na, andna_col_subset. Pre-calculated locations can also be passed tona_locto compare methods using identical NA patterns.
Minor improvements and fixes
col_vars()andmean_imp_col()have been overhauled to use the faster RcppArmadillo backend and now support parallel computation with OpenMP.Dependencies are streamlined. tibble and purrr are removed as hard dependencies, cli is added for more informative messaging, and carrier is added as an explicit dependency.
Documentation is thoroughly overhauled with numerous consistency improvements and bug fixes.
RhpcBLASctl is added as a suggested package to allow pinning BLAS cores and avoid thrashing during parallel runs.
group_imp()andtune_imp()prioritize process-level parallelization via mirai.knn_imp()supports OpenMP-controlled parallelization via thecoresargument when mirai daemons are not active.knn_imp()andpca_imp()use optimized internal Rcpp functions for better performance.
slideimp 0.5.4
CRAN release: 2026-01-07
CRAN resubmission.
group_features()is added to help with creating the group tibble needed forgroup_imp().pca_imp()now allowsrow.w = "n_miss"to scale row weights by the number of missing values per row.