A ridiculous question, but I am having trouble finding a mirror which
has the gstat package. Any clues?
Thanks,
Pete
___
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
You can wrap it in a ?try:
f <- "file"
#f <- "utm55.tif"
info <- try(GDALinfo(f), silent = TRUE)
if (inherits(info, "try-error")) {
## do something else
stop("no good, file not found: ", f)
} else {
## proceed
d <- readGDAL(f)
}
On Tue, Jul 27, 2010 at
r-sig-geo'ers:
Quick question: is there an easy way to have a flag to tell if a
dataset is NOT supported, e.g. when GDALinfo(fname) is in error? I'd
like something like "GDALinfo(fname)" to return "FALSE" if its an
unsupported dataset type. Thanks!
--j
_