Skip to content

Commit

Permalink
Compare core to tiledb-py/tiledb-r major+minor, main branch (#2784)
Browse files Browse the repository at this point in the history
* Compare core to tiledb-py/tiledb-r major+minor, `main` branch

* fix

* requested changes
  • Loading branch information
johnkerl committed Jul 8, 2024
1 parent 13b171c commit 05b1e31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/r/R/Init.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
.onLoad <- function(libname, pkgname) {
rpkg_lib_version <- tiledb::tiledb_version(compact=TRUE)
soma_lib_version <- libtiledbsoma_version(compact=TRUE)
# Check major and minor but not micro: sc-50464
rpkg_lib_version <- paste(strsplit(as.character(rpkg_lib_version), "\\.")[[1]][1:2], collapse = ".")
soma_lib_version <- paste(strsplit(soma_lib_version, "\\.")[[1]][1:2], collapse = ".")
if (rpkg_lib_version != soma_lib_version) {
msg <- sprintf("TileDB Core version %s used by TileDB-R package, but TileDB-SOMA uses %s",
sQuote(rpkg_lib_version), sQuote(soma_lib_version))
Expand Down

0 comments on commit 05b1e31

Please sign in to comment.