Skip to content

Releases: Open-Systems-Pharmacology/OSPSuite.RUtils

Version 1.5.37

09 Sep 08:30
c52332a
Compare
Choose a tag to compare
Version 1.5.37 Pre-release
Pre-release

Downloads

Documentation

https://www.open-systems-pharmacology.org/OSPSuite.RUtils

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.

Full Changelog: v1.5.30...v1.5.37

Version 1.5.30

07 Dec 10:33
d2b4a09
Compare
Choose a tag to compare
Version 1.5.30 Pre-release
Pre-release

Downloads

Documentation

https://www.open-systems-pharmacology.org/OSPSuite.RUtils

What's Changed

NEW FUNCTIONS

  • 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.

BUG FIXES

  • The print function of the Printable class now converts values using the format
    function before printing. E.g., the numerical value "0.99999999" will be displayed as "1".
    #120

Full Changelog: v1.4.23...v1.5.30

Version 1.4.23

27 Jan 16:42
ff066f6
Compare
Choose a tag to compare

Downloads

Documentation

https://www.open-systems-pharmacology.org/OSPSuite.RUtils/

What's Changed

Full Changelog: v1.3.17...v1.4.23

Version 1.3.17

20 May 10:10
266afc8
Compare
Choose a tag to compare

Downloads

ospsuite.utils_1.3.17.tar.gz
ospsuite.utils_1.3.17.zip

Documentation

https://www.open-systems-pharmacology.org/OSPSuite.RUtils/

New functions

  • hasEmptyStrings() and validateHasOnlyNonEmptyStrings() to check for empty strings.

  • objectCount to count number of objects.

  • validateHasOnlyDistinctValues() to validate only unique values are present.

  • validateIsFileExtension() to validate file extensions.

Major changes

  • Cloning method is now disabled for Printable R6 class. This entails that
    cloneable property set by Printable's subclasses will be respected.
    Previously, this was not the case; the cloning method was available even
    if
    the subclass had explicitly set cloneable = FALSE.

Minor changes

  • Michael Sevestre is the new maintainer.

  • The package has been archived on CRAN.

Consolidation with *ospsuite* messages and settings

18 Feb 17:27
ab97945
Compare
Choose a tag to compare

Binaries

Attached with this release. These were built by CRAN for current release (4.1.2) of R.

Change log

MAJOR CHANGES

  • Removes alias hasUniqueValues().

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

BUG FIXES

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

NEW FUNCTIONS

  • 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).

Documentation improvement and maintenance

09 Feb 14:39
Compare
Choose a tag to compare

Binaries

Attached with this release. These were built by CRAN for current release (4.1.2) of R.

Change log

MAJOR CHANGES

  • isIncluded() now only accepts base types as valid inputs.

  • formatNumerics() now consistently returns output of type "character".

MINOR CHANGES

  • Improvements to documentation.

  • validateIsCharacter() is added as an alias for validateIsString() function.

  • getEnumKey() is added as an alias for enumGetKey() function.

  • hasOnlyDistinctValues() is added as an alias for hasUniqueValues() function.

BUG FIXES

  • validateIsInteger() now works with lists (#21).

Initial CRAN release

08 Dec 09:00
Compare
Choose a tag to compare