if(getRversion() < "3.3.0") {
stop("Your version of R is too old. This package requires R-3.3.0 or newer on Windows.")
}
# For details see: https://github.com/rwinlib/gdal2
VERSION <- commandArgs(TRUE)
if(!file.exists(sprintf("../windows/gdal3-%s/include/gdal/gdal.h", VERSION))){
if(getRversion() < "3.3.0") setInternet2()
download.file(sprintf("https://github.com/rwinlib/gdal3/archive/refs/tags/v%s.zip", VERSION), "lib.zip", quiet = TRUE)
dir.create("../windows", showWarnings = FALSE)
unzip("lib.zip", exdir = "../windows")
unlink("lib.zip")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.