if (FALSE) {
CheckPackages('dplyr == 1.2.1') # fails if not exact version
CheckPackages('dplyr <= 1.2.1') # fails if not equal to or less than
CheckPackages('dplyr >= 1.2.1') # allows specific version or higher
CheckPackages('dplyr <= 1.2.1', 'mirt >= 1.45.1') # multiple checks
}
Run the code above in your browser using DataLab