Learn R Programming

{ospsuite.utils}: Utility Functions for Open Systems Pharmacology R Packages

Introduction

This package contains utility functions for R packages in the Open Systems Pharmacology ecosystem:

Code of Conduct

Please note that the ospsuite.utils project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('ospsuite.utils')

Monthly Downloads

16

Version

1.2.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Indrajeet Patil

Last Published

February 18th, 2022

Functions in ospsuite.utils (1.2.0)

enumGetValue

Get enum values
enumRemove

Remove an entry from the enum.
ifNotNull

Shortkey checking if argument 1 is not NULL, output the argument 2 if not null, or output argument 3 otherwise
isOfLength

Check if the provided object has nbElements elements
Printable

Printable
enum

Define an enumerated list
getOSPSuiteUtilsSetting

Get the value of a global {ospsuite.utils} package setting.
isSameLength

Check if objects are of same length
isOfType

Check if the provided object is of certain type
validateIsIncluded

Check if values are included
isEmpty

Check if the provided object is empty
validateIsOfLength

Check if objects have expected length
isFileExtension

Check if the provided path has required extension
toList

Make sure the object is a list
isIncluded

Check if a vector of values is included in another vector of values
validateEnumValue

Check if value is in the given enum. If not, stops with an error.
enumKeys

Get all keys of an enum
validateIsOfType

Check if the provided object is of certain type. If not, stop with an error.
validatePathIsAbsolute

Check if path is absolute
validateIsSameLength

Check if all objects are of same length
hasOnlyDistinctValues

Check that an array of values does not include any duplicate
validateIsNotEmpty

Check if objects is not empty
messages

List of functions and strings used to signal error messages
enumValues

Get the values stored in an enum
formatNumerics

formatNumerics
ospsuiteUtilsSettingNames

Names of the settings stored in ospsuiteEnv. Can be used with getOSPSuiteUtilsSetting()
op-null-default

Default value for NULL
enumPut

Add a new key-value pairs to an enum
enumGetKey

Get the key mapped to the given value in an enum
enumHasKey

Check if an enum has a certain key.