# Build against static libraries from rwinlib or rwinlib-tiledb
dcffile <- "../tools/tiledbVersion.txt"
if (!file.exists(dcffile)) stop("TileDB Version file not found.")
dcf <- read.dcf(dcffile)
ver <- dcf[[1, "version"]]
if (!file.exists("../windows/rwinlib-tiledb/include/tiledb/tiledb.h")) {
if (getRversion() < "4") stop("This package requires Rtools40 or newer")
op <- options()
options(timeout=180) # CRAN request to have patient download settings
download.file(sprintf("https://github.com/TileDB-Inc/rwinlib-tiledb/archive/v%s.zip", ver), "lib.zip", quiet = TRUE)
options(op)
dir.create("../windows", showWarnings = FALSE)
unzip("lib.zip", exdir = "../windows")
file.rename(sprintf("../windows/rwinlib-tiledb-%s", ver), "../windows/rwinlib-tiledb")
unlink("lib.zip")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.