Changelog
Source:NEWS.md
cpmr (development version)
Breaking changes
- Removed the legacy
cpm()entry point and the deprecatedconfoundsalias. Usefit(cpm_spec(...), ...)/fit_resamples(cpm_spec(...), ...)for the native workflow. -
fit()now performs a single fit; resampling is handled byfit_resamples(). -
cpm_resamplesno longer stores redundant resample metrics, and thecollect_*()helpers have been removed. Usesummary()for aggregated resample results andpredictions,edges, andfoldsfor raw outputs.
Enhancements
- Added
cpm_spec()as the native interface forfit()andfit_resamples(), and made single-fit and resample result objects more consistent. - Added
summary.cpm_resamples(), which now reports pooled out-of-fold error metrics by default and keeps pooled / fold-wise correlations as supplementary statistics. - Added
resample_metrics()for direct access to pooled or fold-wise metric tables from acpm_resamplesobject. - Added native-first documentation, including a getting-started vignette and reorganized pkgdown reference pages.
cpmr 0.1.1
CRAN release: 2026-03-11
Enhancements
- Renamed internal constant
networksandincludestocorr_typesandinc_edges, respectively, to better reflect their purpose. In addition, the documentation which mentionednetworkshas been updated to use correlation types to better reflect their meaning. - Reorganized
R/cpm.Rsocpm()remains the entry-point function at the top, followed byprint.cpm(), with internal helpers grouped below. - Improved test architecture with explicit internal-helper coverage and complete-case fold invariants.
Maintenance
- Refactored the internal
cpm()workflow into smaller helpers (normalize_inputs,resolve_include_cases,apply_confounds_regression, etc.) while preserving user-facing behavior. - Removed the obsolete internal alias
regress_counfounds(). - Removed broad
Rfastnamespace import in favor of explicitRfast::calls. - Updated
summary.cpm()edge summarization path to avoid mutating local object fields.
cpmr 0.0.8
CRAN release: 2024-03-14
- Added
return_edgesargument to optionally set how to return edges in the output.
cpmr 0.0.5
- Fixed confounds treatment. Now confounds are used in feature selection but not in model fitting.
cpmr 0.0.4
- Ensure sparsity threshold method work as expect.
- Some other improvements in code quality.