Skip to content

Commit

Permalink
Removed dep gdalUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
thengl committed Jun 7, 2022
1 parent 55cf266 commit fce6912
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Imports:
sp,
plyr,
rgdal,
gdalUtils,
raster,
ranger,
rpart,
Expand Down
11 changes: 0 additions & 11 deletions R/tile.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")))))
}
Expand Down

0 comments on commit fce6912

Please sign in to comment.