OHDSI / PatientLevelPrediction

An R package for performing patient level prediction in an observational database in the OMOP Common Data Model.
https://ohdsi.github.io/PatientLevelPrediction
187 stars 88 forks source link

is_installed does not work in R4.4 #443

Closed egillax closed 5 months ago

egillax commented 5 months ago
is_installed <- function (pkg, version = 0) {
  installed_version <- tryCatch(utils::packageVersion(pkg), 
                                error = function(e) NA)
  !is.na(installed_version) && installed_version >= version
}

In R 4.4.0 packageVersions are enforced to be characters so the comparison in the last line is invalid.

egillax commented 5 months ago

Fixed by #446