* using log directory ‘/data/gannet/ripley/R/packages/tests-LENGTH1/gdalUtils.Rcheck’ * using R Under development (unstable) (2022-04-03 r82074) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘gdalUtils/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘gdalUtils’ version ‘2.0.3.2’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘gdalUtils’ can be installed ... [41s/56s] OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [56s/103s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [18s/18s] ERROR Running examples in ‘gdalUtils-Ex.R’ failed The error most likely occurred in: > ### Name: gdalsrsinfo > ### Title: gdalsrsinfo > ### Aliases: gdalsrsinfo > > ### ** Examples > > # We'll pre-check to make sure there is a valid GDAL install. > # Note this isn't strictly neccessary, as executing the function will > # force a search for a valid GDAL install. > gdal_setInstallation() > valid_install <- !is.null(getOption("gdalUtils_gdalPath")) > if(valid_install) + { + src_dataset <- system.file("external/tahoe_highrez.tif", package="gdalUtils") + # Command-line gdalsrsinfo call: + # gdalsrsinfo -o proj4 tahoe_highrez.tif + gdalsrsinfo(src_dataset,o="proj4",verbose=TRUE) + # Export as CRS: + gdalsrsinfo(src_dataset,as.CRS=TRUE,verbose=TRUE) + } Checking gdal_installation... GDAL version 3.4.2 GDAL command being used: "/usr/local/bin/gdalsrsinfo" -o "proj4" "/data/gannet/ripley/R/packages/tests-LENGTH1/gdalUtils.Rcheck/gdalUtils/external/tahoe_highrez.tif" +proj=longlat +datum=WGS84 +no_defs Checking gdal_installation... GDAL version 3.4.2 GDAL command being used: "/usr/local/bin/gdalsrsinfo" -o "proj4" "/data/gannet/ripley/R/packages/tests-LENGTH1/gdalUtils.Rcheck/gdalUtils/external/tahoe_highrez.tif" +proj=longlat +datum=WGS84 +no_defs ----------- FAILURE REPORT -------------- --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- sp --- call from context --- CRS(gsub("'", "", cmd_output)) --- call from argument --- !is.na(projargs) && !nzchar(projargs) --- R stacktrace --- where 1: CRS(gsub("'", "", cmd_output)) where 2: gdalsrsinfo(src_dataset, as.CRS = TRUE, verbose = TRUE) --- value of length: 3 type: logical --- [1] TRUE TRUE TRUE --- function from context --- function (projargs = NA_character_, doCheckCRSArgs = TRUE, SRS_string = NULL, get_source_if_boundcrs = TRUE) { if (is.null(projargs)) warning("CRS: projargs should not be NULL; set to NA") if ((is.null(projargs)) || (!is.na(projargs) && !nzchar(projargs))) projargs <- NA_character_ stopifnot(is.logical(doCheckCRSArgs)) stopifnot(length(doCheckCRSArgs) == 1L) stopifnot(is.logical(get_source_if_boundcrs)) stopifnot(length(get_source_if_boundcrs) == 1L) stopifnot(is.character(projargs)) input_projargs <- projargs if (!is.na(input_projargs)) { res <- .sp_CRS_cache[[input_projargs]] if (!is.null(res)) { return(res) } } if (doCheckCRSArgs && requireNamespace("rgdal", quietly = TRUE)) { if (packageVersion("rgdal") >= "1.5.1" && !rgdal::new_proj_and_gdal()) { if (is.na(projargs) && !is.null(SRS_string)) { if (substring(SRS_string, 1, 4) == "EPSG") { pa0 <- strsplit(SRS_string, ":")[[1]] projargs <- paste0("+init=epsg:", pa0[2]) } } } } if (!is.na(projargs)) { if (length(grep("^[ ]*\\+", projargs)) == 0) { if (is.null(SRS_string)) { if (doCheckCRSArgs && requireNamespace("rgdal", quietly = TRUE)) { if (packageVersion("rgdal") >= "1.5.1") { if (rgdal::new_proj_and_gdal()) { SRS_string <- projargs projargs <- NA_character_ } else { if (substring(projargs, 1, 4) == "EPSG") { pa0 <- strsplit(projargs, ":")[[1]] projargs <- paste0("+init=epsg:", pa0[2]) } else { stop("Cannot revert", projargs, "to +init=epsg:") } } } } } else { stop(paste("PROJ4 argument-value pairs must begin with +:", projargs)) } } } if (!is.na(projargs)) { if (length(grep("latlon", projargs)) != 0) stop("northings must follow eastings: ", projargs) if (length(grep("lonlat", projargs)) != 0) { projargs <- sub("lon", "long", projargs) warning("'lonlat' changed to 'longlat': ", projargs) } } if (is.na(projargs)) { uprojargs <- projargs } else { uprojargs <- paste(unique(unlist(strsplit(projargs, " "))), collapse = " ") if (length(grep("= ", uprojargs)) != 0) stop(paste("No spaces permitted in PROJ4 argument-value pairs:", uprojargs)) if (length(grep(" [:alnum:]", uprojargs)) != 0) stop(paste("PROJ4 argument-value pairs must begin with +:", uprojargs)) } comm <- NULL if (!is.na(uprojargs) || (!is.null(SRS_string) && nzchar(SRS_string))) { if (doCheckCRSArgs && requireNamespace("rgdal", quietly = TRUE)) { if (packageVersion("rgdal") < "1.5.1") { res <- rgdal::checkCRSArgs(uprojargs) if (!res[[1]]) stop(res[[2]]) uprojargs <- res[[2]] } else if (packageVersion("rgdal") >= "1.5.1") { if (rgdal::new_proj_and_gdal()) { if (packageVersion("rgdal") >= "1.5.17") { res <- rgdal::checkCRSArgs_ng(uprojargs = uprojargs, SRS_string = SRS_string, get_source_if_boundcrs = get_source_if_boundcrs) } else { res <- rgdal::checkCRSArgs_ng(uprojargs = uprojargs, SRS_string = SRS_string) } if (!res[[1]]) stop(res[[2]]) uprojargs <- res[[2]] comm <- res[[3]] } else { if (!is.na(uprojargs)) { res <- rgdal::checkCRSArgs(uprojargs) if (!res[[1]]) stop(res[[2]]) uprojargs <- res[[2]] } } } else stop("rgdal version mismatch") } } res <- new("CRS", projargs = uprojargs) if (!is.null(comm)) comment(res) <- comm if (!is.na(slot(res, "projargs"))) .sp_CRS_cache[[input_projargs]] <- res res } --- function search by body --- Function CRS in namespace sp has this body. ----------- END OF FAILURE REPORT -------------- Fatal error: length > 1 in coercion to logical * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/data/gannet/ripley/R/packages/tests-LENGTH1/gdalUtils.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 7:43.57, 303.19 + 17.26