Changelog
Source:NEWS.md
ospsuite.utils 1.8.0
Major changes
- New functions using cli and logger packages to record and keep tracks of what the code does in a log file:
-
setLogFolder(): initialize/end the logging system -
logCatch(): catch and record messages, warnings, and errors -
logError(),logWarning(),logInfo(),logDebug(): record errors, warnings, info and debug messages in the logs.
-
ospsuite.utils 1.7.0
Major changes
- Class
Printableis deprecated, - New functions
ospPrintClass(),ospPrintItems(), andospPrintHeader()are introduced to replace thePrintableclass.
ospsuite.utils 1.6.0
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 handlesNULLandNAvalues.validateColumns()for rigorous validation of data frame columns against predefined specifications. Supports validation of type, value range, allowed values, and managesNULLandNAvalues effectively.validateVector()introduced as a comprehensive vector validation tool, allowing checks against type, value range, and predefined allowed values with considerations forNULLandNA. Used by other validation functionsvalidateIsOption()andvalidateColumns().validateVectorRange()andvalidateVectorValues()to provide detailed validation for value ranges and allowed values respectively. These functions complementvalidateVector().isFileUTF8()andvalidateIsFileUTF8()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 computex / ywhenxorycould be negative or zero. All values below a certain thresholdepsilonare substituted byepsilon. NOTE: not suited for calculating fold differences of negative numbers.
Minor improvements and bug fixes
- The print function of the
Printableclass now converts values using theformatfunction before printing. E.g., numerical value “0.99999999” will be displayed as “1”. https://github.com/Open-Systems-Pharmacology/OSPSuite.RUtils/issues/120
ospsuite.utils 1.4.23
Major changes
ifEqual()andifIncluded()for conditional values.flattenList()to flatten a list to an atomic vector of desired type.toMissingOfType()to convert special constants (NULL,Inf,NA, etc.) toNAof desired type.
ospsuite.utils 1.3.0
Major changes
hasEmptyStrings()andvalidateHasOnlyNonEmptyStrings()to check for empty strings.objectCountto count number of objects.validateHasOnlyDistinctValues()to validate only unique values are present.validateIsFileExtension()to validate file extensions.Cloning method is now disabled for
PrintableR6 class. This entails thatcloneableproperty set byPrintable’s subclasses will be respected. Previously, this was not the case; the cloning method was available even if the subclass had explicitly setcloneable = FALSE.
ospsuite.utils 1.2.0
CRAN release: 2022-02-18
Major changes
Removes alias
hasUniqueValues().All messages used in
ospsuitepackage are now inospsuit.utils(exported listmessages).Adds
isEmpty()andvalidateIsNotEmpty()functions to validate that objects aren’t empty (#58; thanks to @pchelle).Adds
getOSPSuiteUtilsSetting()function to get global settings (see enumospsuiteUtilsSettingNamesfor 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
isIncluded()now only accepts base types as valid inputs.formatNumerics()now consistently returns output of type"character".
Minor improvements and bug fixes
Improvements to documentation.
validateIsCharacter()is added as an alias forvalidateIsString()function.getEnumKey()is added as an alias forenumGetKey()function.hasOnlyDistinctValues()is added as an alias forhasUniqueValues()function.validateIsInteger()now works with lists (#21).