Skip to contents

ospsuite.utils (development version)

Major changes

  • validateIsOption() to validate a list of options against specified criteria, improving robustness in option handling. This function ensures options match expected types, value ranges, allowed values, and handles NULL and NA values.

  • validateColumns() for rigorous validation of data frame columns against predefined specifications. Supports validation of type, value range, allowed values, and manages NULL and NA values effectively.

  • validateVector() introduced as a comprehensive vector validation tool, allowing checks against type, value range, and predefined allowed values with considerations for NULL and NA. Used by other validation functions validateIsOption() and validateColumns().

  • validateVectorRange() and validateVectorValues() to provide detailed validation for value ranges and allowed values respectively. These functions complement validateVector().

  • isFileUTF8() and validateIsFileUTF8() to provide validation assessing whether files are UTF-8 encoded.

ospsuite.utils 1.5.0

Major changes

  • logSafe() to compute logarithm of values that could be close to 0 or slightly negative.

  • foldSafe() to compute x / y when x or y could be negative or zero. All values below a certain threshold epsilon are substituted by epsilon. NOTE: not suited for calculating fold differences of negative numbers.

Minor improvements and bug fixes

ospsuite.utils 1.4.23

Major changes

ospsuite.utils 1.3.0

Major changes

Minor improvements and bug fixes

  • Michael Sevestre is the new maintainer.

  • The package has been archived on CRAN.

ospsuite.utils 1.2.0

CRAN release: 2022-02-18

Major changes

  • Removes alias hasUniqueValues().

  • All messages used in ospsuite package are now in ospsuit.utils (exported list messages).

  • Adds isEmpty() and validateIsNotEmpty() functions to validate that objects aren’t empty (#58; thanks to @pchelle).

  • Adds getOSPSuiteUtilsSetting() function to get global settings (see enum ospsuiteUtilsSettingNames for supported settings).

Minor improvements and bug fixes

  • Fixes a regression in isIncluded() in previous release that inadvertently removed support for compound types (#63).

ospsuite.utils 1.1.0

CRAN release: 2022-02-09

Major changes

Minor improvements and bug fixes

ospsuite.utils 1.0.0

CRAN release: 2021-12-08

  • Initial release.