Skip to contents

thisutils 0.2.5

  • func:
    • Optimize check_sparsity() function: Improved calculation logic by computing total counts upfront, avoiding redundant calculations for sparse and non-sparse matrices.
    • Optimize normalization() function: Enhanced max_min and maximum methods by caching min/max values to avoid repeated calculations.
    • Improve code quality in parallelize_fun(): Replaced sapply() with vapply() for type-safe return values and optimized error handling logic.
    • Optimize P-value combination functions (meanp(), sump(), votep()): Extracted validp variable to avoid repeated indexing and improved code efficiency.
    • Enhance sump() function: Replaced loop-based calculation with vectorized operations for better performance.
    • Improve capitalize() and unnest_fun() functions: Replaced sapply() with vapply() for type safety.
    • Enhance add_pkg_file() function: Now automatically checks for the existence of src directory and only adds @useDynLib directive when src folder is present in the package environment.

thisutils 0.2.4

  • func:
    • Enhance log_message() function: Now automatically handles non-character objects (e.g., data.table, data.frame) by formatting them with capture.output(print(...)), allowing direct object input without manual string conversion.

thisutils 0.2.3

  • func:
    • Rewrite matrix_to_table() C++ implementation to iterate dgCMatrix slots directly, avoiding dense conversion and reducing memory/time cost on large sparse matrices.
    • Align keep_zero/threshold semantics across C++/R: retain entries if abs(value) >= threshold; zeros are retained only when keep_zero = TRUE and threshold == 0.

thisutils 0.2.2

  • func:
    • Enhance parallelize_fun() function: Added support for named vectors and vectors in progress display, showing current processing item names or values in the progress bar. Improved progress bar formatting with status information and enhanced parallel processing progress updates.
    • Improve visual formatting in add_pkg_file() and thisutils-package.R: Enhanced separator line display with grey color styling using cli::col_grey() for better visual consistency.

thisutils 0.2.1

  • func:
    • Enhance add_pkg_file() function: Added automatic dependency checking to ensure cli package is included in DESCRIPTION file, and automatic pkgdown configuration checking to ensure proper package overview section setup.

thisutils 0.2.0

CRAN release: 2025-10-06

  • func:
    • Add package logo.
    • Add get_verbose() function: New exported function to get verbose option from global options or local arguments, providing better control over message display.
    • Enhance .onAttach() function: Now respects verbose settings and only displays startup messages when verbose mode is enabled, improving user experience.
    • Update add_pkg_file() function: Generated .onAttach() function now includes verbose check using get_verbose(), ensuring consistency with package behavior.
  • docs:

thisutils 0.1.9

  • func:
    • Remove list_figlet_fonts() and rescale() functions.

thisutils 0.1.7

  • func:
    • Refactor add_pkg_file() function: Simplified function parameters by removing manual parameter inputs and automatically extracting all package information from DESCRIPTION file. Enhanced error handling and improved logging messages.
    • Enhance parallelize_fun() function with robust error handling: Added clean_result parameter to control automatic removal of failed results, and throw_error parameter to control detailed error message display. Functions now gracefully handle partial failures without stopping execution.
    • Add parse_inline_expressions() function: High-performance inline expression parser that evaluates {} expressions while preserving CLI formatting markers like {.val ...}.
    • Enhance log_message() function: Add new "running" message type with orange circle dotted symbol () to indicate ongoing processes.

thisutils 0.1.6

thisutils 0.1.5

CRAN release: 2025-09-11

  • func:
    • Update add_pkg_file() function. Now, add_pkg_file() can automatically extract information of R package from DESCRIPTION file and save it in the ./R/ folder.

thisutils 0.1.4

  • func:
    • Delete str_wrap() function.

thisutils 0.1.3

thisutils 0.1.1

thisutils 0.0.9

thisutils 0.0.8

  • docs:
    • Update documentation for some functions.