Check version function for packages

Check version function for packages

aux_version(
  pkgName = "IQRtools",
  IQdesktop = NULL,
  exactVersion = NULL,
  minVersion = NULL,
  Rversion = NULL,
  isRopen = NULL,
  OS = NULL
)

Arguments

pkgName

String with name of package (defaults to IQRtools)

IQdesktop

String defining the IQdesktop version used for the analysis

exactVersion

String with exact version of package required

minVersion

String with minimum version of package required

Rversion

The user can provide the R version used for this analysis. If provided (example: Rversion="3.5.1") then it will be checked if the current R version matches it. If not, there will be an error message.

isRopen

The user can define whether R Open is to be used for the analysis (TRUE or FALSE). If provided then it will be checked if this is correct. If not, there will be an error message.

OS

The user can provide which operating system used for this analysis. If provided (example: OS="unix") then it will be checked if the OS matches it. If not, there will be an error message.

Value

Version of package as string (if minVersion=NULL) TRUE if version of package >= minVersion Error message if version of package < minVersion