Skip to content

Commit a47beea

Browse files
committed
g
1 parent d9d5f2a commit a47beea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/raster.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ setMethod('raster', signature(x='GridTopology'),
474474

475475
setMethod('raster', signature(x='SpatRaster'),
476476
function(x) {
477-
as(x[[1]], "Raster")
477+
r <- as(x[[1]], "Raster")
478+
g <- gc()
479+
r
478480
}
479481
)

0 commit comments

Comments
 (0)