R/scidb_features.R

Defines functions .SCIDB_HAS_REMOVE_VERSIONS_KEEP_FIX

Documented in .SCIDB_HAS_REMOVE_VERSIONS_KEEP_FIX

#' Check if Scidb has the fix allowing `remove_versions(..., keep:x)`, where
#' `x` is greater than the number of versions the array actually has
#' 
#' @export
.SCIDB_HAS_REMOVE_VERSIONS_KEEP_FIX <- function(con){
  if(con$scidb_version$major>=21){
    return(TRUE)
  }
  if(con$scidb_version$major==19 && con$scidb_version$minor==11 && 
     con$scidb_version$patch>=9){
    return(TRUE)
  }
  if(con$scidb_version$major==20 && con$scidb_version$minor==10 && 
     con$scidb_version$patch>=3){
    return(TRUE)
  }
  return(FALSE)
}
Paradigm4/revealcore documentation built on May 21, 2023, 9:57 a.m.