Skip to content

Commit 8f7ff67

Browse files
authored
Update vapour_vrt.R
use stringr instead of gsub
1 parent 0878ae7 commit 8f7ff67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/vapour_vrt.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ vapour_vrt <- function(x, extent = NULL, projection = NULL, sds = 1L, bands = N
156156
out <- raster_vrt_cpp(x, extent, projection[1L], sds, bands, geolocation, nomd, overview, options)
157157
## scrub any transform, because of #210
158158
if (nzchar(geolocation[1L])) {
159-
out <- gsub("<GeoTransform.*GeoTransform>", "", out)
159+
out <- stringr::str_replace(out, "<GeoTransform.*GeoTransform>", "")
160160
}
161161
out
162162
}

0 commit comments

Comments
 (0)