[Raster-commits] r341 - pkg/raster/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Mar 10 07:45:06 CET 2009


Author: rhijmans
Date: 2009-03-10 07:45:05 +0100 (Tue, 10 Mar 2009)
New Revision: 341

Modified:
   pkg/raster/R/stackRead.R
Log:


Modified: pkg/raster/R/stackRead.R
===================================================================
--- pkg/raster/R/stackRead.R	2009-03-10 06:22:15 UTC (rev 340)
+++ pkg/raster/R/stackRead.R	2009-03-10 06:45:05 UTC (rev 341)
@@ -7,7 +7,7 @@
 
 
 .stackRead <- function(rstack, rownumber, startcol=1, ncolumns=(ncol(rstack)-startcol+1)) {
-	if (dataSource(rstack) == 'ram') {
+	if (dataContent(rstack) == 'all') {  
 		if (rownumber > 0) {
 			warning('all values are in memory; no point in using read')
 		}



More information about the Raster-commits mailing list