Commit 85a0703
fix: improve error handling and add tests for advanced baseline methods
- Add warnings to tryCatch fallbacks instead of silent failures
- Add NA/Inf input validation with informative warnings
- Add convergence warnings for iterative algorithms (aspls, iarpls)
- Move parameter validation from constructors to prep() methods
- Add length checks to all parameter validation
- Fix .arpls_simple by removing dead mad_val code
- Update aspls documentation to accurately describe global lambda averaging
- Add baseline_alpha() and baseline_window() parameter functions
- Fix tunable() specifications to reference proper parameter functions
- Add comprehensive test files for all four new baseline methods
- Package check passes with 0 errors, 0 warnings, 0 notes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent ef6b8d5 commit 85a0703
File tree
8 files changed
+768
-56
lines changed- R
- man
- tests/testthat
8 files changed
+768
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 65 | | |
73 | 66 | | |
74 | 67 | | |
| |||
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
116 | 127 | | |
117 | 128 | | |
118 | 129 | | |
| |||
121 | 132 | | |
122 | 133 | | |
123 | 134 | | |
124 | | - | |
125 | | - | |
| 135 | + | |
| 136 | + | |
126 | 137 | | |
127 | 138 | | |
128 | 139 | | |
| |||
134 | 145 | | |
135 | 146 | | |
136 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
137 | 163 | | |
138 | 164 | | |
139 | 165 | | |
140 | | - | |
| 166 | + | |
141 | 167 | | |
142 | 168 | | |
143 | 169 | | |
| |||
148 | 174 | | |
149 | 175 | | |
150 | 176 | | |
151 | | - | |
| 177 | + | |
152 | 178 | | |
153 | 179 | | |
154 | 180 | | |
| |||
0 commit comments