Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: tiledb
Type: Package
Version: 0.31.0.4
Version: 0.31.0.5
Title: Modern Database Engine for Complex Data Based on Multi-Dimensional Arrays
Authors@R: c(
person("TileDB, Inc.", role = c("aut", "cph")),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Add `tiledb_vfs_copy_dir()`, a wrapper for the `vfs_copy_dir()` function
* Print values for `tiledb_schema_get_types()` and `tiledb_schema_get_names()` [#805](https://github.com/TileDB-Inc/TileDB-R/issues/805)
* Add `tiledb_array_is_open_for_reading()/writing()` [#806](https://github.com/TileDB-Inc/TileDB-R/issues/806)
* Fix static-linking checks for R >= 4.5

# tiledb 0.31.0

Expand Down
7 changes: 5 additions & 2 deletions src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PKG_LIBS = \

LIB_CON = ../inst/lib$(R_ARCH)/libconnection.dll

all: winlibs $(OBJECTS) $(SHLIB) $(LIB_CON)
all: winlibs $(OBJECTS) $(SHLIB) $(LIB_CON) purify

$(LIB_CON): connection/connection.o
mkdir -p $(dir $(LIB_CON))
Expand All @@ -30,4 +30,7 @@ winlibs:
clean:
rm -f $(SHLIB) $(OBJECTS) $(LIB_CON) connection/connection.o

.PHONY: all clean
purify: $(OBJECTS) $(SHLIB) $(LIB_CON)
rm -rf $(RWINLIB)/lib/ || true

.PHONY: all clean purify
27 changes: 14 additions & 13 deletions tools/winlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ if (!file.exists(dcffile)) stop("TileDB Version file not found.")
dcf <- read.dcf(dcffile)
ver <- dcf[[1, "version"]]

if (!file.exists("../inst/tiledb/include/tiledb/tiledb.h")) {
if (getRversion() < "4") stop("This package requires Rtools40 or newer")
op <- options(timeout = 180) # CRAN request to have patient download settings
zipfile <- tempfile(tmpdir = tempdir(check = TRUE), fileext = '.zip')
download.file(
sprintf("https://github.com/TileDB-Inc/rwinlib-tiledb/archive/v%s.zip", ver),
destfile = zipfile,
quiet = !isTRUE(getOption('verbose', default = FALSE))
)
options(op)
unzip(zipfile, exdir = "../inst")
file.rename(sprintf("../inst/rwinlib-tiledb-%s", ver), "../inst/tiledb")
unlink(zipfile, force = TRUE)
if (!file.exists("../inst/tiledb/include/tiledb/tiledb.h") || !dir.exists("../inst/tiledb/lib/")) {
if (getRversion() < "4") stop("This package requires Rtools40 or newer")
if (dir.exists("../inst/tiledb")) unlink("../inst/tiledb", recursive = TRUE, force = TRUE)
op <- options(timeout = 180) # CRAN request to have patient download settings
zipfile <- tempfile(tmpdir = tempdir(check = TRUE), fileext = '.zip')
download.file(
sprintf("https://github.com/TileDB-Inc/rwinlib-tiledb/archive/v%s.zip", ver),
destfile = zipfile,
quiet = !isTRUE(getOption('verbose', default = FALSE))
)
options(op)
unzip(zipfile, exdir = "../inst")
file.rename(sprintf("../inst/rwinlib-tiledb-%s", ver), "../inst/tiledb")
unlink(zipfile, force = TRUE)
}
Loading