Changes in version 2.4.0 - Added tgs_chi2(): vectorized chi-squared test for 2x2 contingency tables with optional Yates' continuity correction. Supports both dense and sparse (dgCMatrix) matrix input. Useful for differential gene expression analysis. C++ backend with fork-based parallelization for large matrices and erfc(sqrt(x/2)) optimization for p-value computation. Changes in version 2.3.32 (2026-03-20) - Replaced non-API C entry point Rf_findVar with R_getVar for R 4.6.0 compatibility. - Added .claude to .Rbuildignore. Changes in version 2.3.30 - FIFO temp directory is now configurable via options(tgs_tmpdir = "/path") or the TMPDIR environment variable, instead of being hardcoded to /tmp. Fixes permission errors on systems where /tmp is restricted (#17). - Added a child-process liveness check in wait_for_kid()/wait_for_kids() to prevent potential hangs when child processes terminate unexpectedly without being reaped (#18). - Added comprehensive tests for tgs_cor_knn and temp directory configuration. Changes in version 2.3.29 (2025-11-12) - Removed non-API calls to R: Rf_GetOption. Changes in version 2.3.28 (2024-09-23) - Fixed noRemap additional issue by adding Rf_ prefix in the c++ code. - Removed non-API calls to R: R_curErrorBuf, SET_TYPEOF in the c++ code. Changes in version 2.3.27 (2024-02-15) - Fixed URL of the package in the DESCRIPTION file. Changes in version 2.3.26 - Guess tgs.use_blas from environment if not set. Changes in version 2.3.25 (2023-11-29) - Fixed clang warnings. Changes in version 2.3.24 (2023-06-27) - Fixed compilation errors on clang17. Changes in version 2.3.23 - Added missing header. Changes in version 2.3.22 (2023-01-24) - Fixed compilation errors on clang16. Changes in version 2.3.20 - added missing include in order to compile with gcc 13 Changes in version 2.3.19 (2022-11-24) - Fixed rchk warning with the patch generously provided by Tomas Kalibera (thanks!). - Fixed a compilation warning on M1 macs. Changes in version 2.3.18 (2022-09-29) - Fixed a compilation warning on M1 macs. Changes in version 2.3.17 (2022-04-14) - Fix compilation issues with R 4.2.0 - Use roxygen2 and markdown for documentation Changes in version 2.3.16 (2020-09-02) - Fix compilation issues on Debian. Changes in version 2.3.15 - Fix compilation errors on 32-bit platforms. - Fix compilation and run-time issues on Solaris. Changes in version 2.3.14 (2020-08-19) - Stop using non-portable bswap_32 and bswap_64. Changes in version 2.3.13 - tgs_matrix_tapply: set correctly the column names of the resulted matrix. - tgs_cor_knn: fix alignment issues on some platforms. Changes in version 2.3.12 - Added authors with DOI to package description. Changes in version 2.3.11 - Fixed compilation issues on some platforms. Changes in version 2.3.10 (2020-07-13) - Bug fix in tgs_matrix_tapply: "fn_name is not a string" error when 'fun' is a function defined inline. - Bug fix in tgs_matrix_tapply: occasional "stack imbalance" warning.