From fce69128fc34ab05130fa8b39587adbf408bc9df Mon Sep 17 00:00:00 2001 From: Tomislav Hengl Date: Tue, 7 Jun 2022 10:12:47 +0200 Subject: [PATCH] Removed dep gdalUtils --- DESCRIPTION | 1 - R/tile.R | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4e14604..459c4dc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,7 +22,6 @@ Imports: sp, plyr, rgdal, - gdalUtils, raster, ranger, rpart, diff --git a/R/tile.R b/R/tile.R index d706b09..4272e04 100644 --- a/R/tile.R +++ b/R/tile.R @@ -139,17 +139,6 @@ setMethod("tile", signature(x = "RasterLayer"), function(x, y, block.x, tmp.file .programPath <- function(path, utility){ if(missing(path)){ - if(!file.exists("C:/PROGRA~1/GDAL/")&.Platform$OS.type == "windows"){ - if(requireNamespace("gdalUtils", quietly = TRUE)){ - path <- getOption("gdalUtils_gdalPath")[[1]]$path - if(is.null(path)){ - ## force gdal installation: - gdalUtils::gdal_setInstallation() - message("Forcing installation of GDAL utilities... this might take time.") - path <- getOption("gdalUtils_gdalPath")[[1]]$path - } - } - } if(file.exists(paste0("C:/PROGRA~1/GDAL/", utility, ".exe"))&.Platform$OS.type == "windows"){ program = shQuote(utils::shortPathName(normalizePath(file.path("C:/PROGRA~1/GDAL/", paste0(utility, ".exe"))))) }