You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix critical as.logical(from) error and enhance API response handling
- Fixed major bug that occurred when processing large numbers of clusters (60+)
- Added comprehensive error handling for strsplit() operations in all API processing functions
- Enhanced response validation to prevent function/closure types from being processed as strings
- Improved NULL value handling in unlist() operations
- Added detailed error logging for better debugging
- Updated version to 1.2.4
This resolves the 'cannot coerce type closure to vector of type logical' error
that users encountered when processing datasets with many clusters.
Copy file name to clipboardExpand all lines: R/NEWS.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,23 @@
1
1
# mLLMCelltype Changelog
2
2
3
+
## 1.2.4 (2025-05-25)
4
+
5
+
### Critical Bug Fixes
6
+
***Fixed major `as.logical(from)` error**: Resolved critical error that occurred when processing large numbers of clusters (60+ clusters), which was caused by non-character data being passed to `strsplit()` functions
7
+
***Enhanced error handling for API responses**: Added comprehensive `tryCatch()` blocks around all `strsplit()` operations in API processing functions
8
+
***Improved response validation**: Added robust type checking for API responses to prevent function/closure types from being processed as character strings
9
+
10
+
### Improvements
11
+
***Enhanced API processing robustness**: All API processing functions (`process_openrouter.R`, `process_anthropic.R`, `process_openai.R`, `process_deepseek.R`, `process_qwen.R`, `process_stepfun.R`, `process_minimax.R`, `process_zhipu.R`, `process_gemini.R`, `process_grok.R`) now include improved error handling
12
+
***Better NULL value handling**: Improved `unlist()` operations to filter out NULL values and handle errors gracefully
13
+
***Enhanced logging**: Added more detailed error logging for debugging API response issues
14
+
***Improved consensus checking**: Enhanced `check_consensus.R` to handle edge cases with malformed responses
15
+
16
+
### Technical Details
17
+
* Fixed issue where large cluster datasets could cause type coercion errors in response parsing
18
+
* Added validation for function/closure types in API responses to prevent downstream errors
19
+
* Improved error messages to provide better diagnostics for API response issues
0 commit comments