Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- emomsen@gisdev:~/temp/rspatial/pkg$ grass70
- Cleaning up temporary files...
- Starting GRASS GIS...
- __________ ___ __________ _______________
- / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
- / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
- / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
- \____/_/ |_/_/ |_/____/____/ \____/___//____/
- Welcome to GRASS 7.0.svn
- GRASS homepage: http://grass.osgeo.org
- This version running through: Bash Shell (/bin/bash)
- Help is available with the command: g.manual -i
- See the licence terms with: g.version -c
- If required, restart the GUI with: g.gui wxpython
- When ready to quit enter: exit
- Launching <wxpython> GUI in the background, please wait...
- GRASS 7.0.svn (spearfish70):~/temp/rspatial/pkg > R CMD check spgrass6
- * using log directory ‘/home/emomsen/temp/rspatial/pkg/spgrass6.Rcheck’
- * using R version 2.14.1 (2011-12-22)
- * using platform: x86_64-pc-linux-gnu (64-bit)
- * using session charset: UTF-8
- * checking for file ‘spgrass6/DESCRIPTION’ ... OK
- * this is package ‘spgrass6’ version ‘0.7-9’
- * 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 whether package ‘spgrass6’ can be installed ... OK
- * checking installed package size ... OK
- * checking package directory ... OK
- * checking for portable file names ... OK
- * checking for sufficient/correct file permissions ... OK
- * checking DESCRIPTION meta-information ... OK
- * checking top-level 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 for unstated 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 ... OK
- * checking Rd files ... OK
- * checking Rd metadata ... 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 ... ERROR
- Running examples in ‘spgrass6-Ex.R’ failed
- The error most likely occurred in:
- > ### Name: readRAST6
- > ### Title: Read and write GRASS 6+ raster files
- > ### Aliases: readRAST6 writeRAST6
- > ### Keywords: spatial
- >
- > ### ** Examples
- >
- > if (nchar(Sys.getenv("GISRC")) > 0) {
- + require(rgdal)
- + ois <- get.ignore.stderrOption()
- + set.ignore.stderrOption(TRUE)
- + get.useGDALOption()
- + spear <- readRAST6(c("geology", "elevation.dem"), cat=c(TRUE, FALSE),
- + useGDAL=FALSE)
- + spear <- readRAST6(c("geology", "elevation.dem"), cat=c(TRUE, FALSE),
- + useGDAL=TRUE)
- + print(table(spear$geology))
- + execGRASS("r.stats", flags=c("c", "l", "quiet"), input="geology")
- + boxplot(spear$elevation.dem ~ spear$geology)
- + spear$sqdem <- sqrt(spear$elevation.dem)
- + if ("GRASS" %in% gdalDrivers()$name) {
- + execGRASS("g.region", rast="elevation.dem")
- + dem1 <- readRAST6("elevation.dem", plugin=TRUE, mapset="PERMANENT")
- + print(summary(dem1))
- + execGRASS("g.region", rast="elevation.dem")
- + }
- + writeRAST6(spear, "sqdemSP", zcol="sqdem")
- + execGRASS("r.info", map="sqdemSP")
- + execGRASS("g.remove", rast="sqdemSP")
- + writeRAST6(spear, "sqdemSP", zcol="sqdem", useGDAL=TRUE)
- + execGRASS("r.info", map="sqdemSP")
- + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
- + useGDAL=TRUE, return_SGDF=FALSE)))
- + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
- + useGDAL=TRUE, return_SGDF=TRUE)))
- + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
- + useGDAL=FALSE, return_SGDF=TRUE)))
- + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
- + useGDAL=FALSE, return_SGDF=FALSE)))
- + str(sqdemSP)
- + mat <- do.call("cbind", sqdemSP$dataList)
- + str(mat)
- + print(system.time(SGDF <- SpatialGridDataFrame(grid=sqdemSP$grid,
- + proj4string=sqdemSP$proj4string, data=as.data.frame(sqdemSP$dataList))))
- + summary(SGDF)
- + execGRASS("g.remove", rast="sqdemSP")
- + if (execGRASS("g.version", intern=TRUE) > "GRASS 7") {
- + execGRASS("r.mapcalc", expression="quads0 = quads - 1")
- + } else {
- + execGRASS("r.mapcalculator", outfile="quads0",
- + amap="quads", formula='A - 1')
- + }
- + execGRASS("r.stats", flags="c", input="quads0")
- + quads0 <- readRAST6("quads0")
- + print(table(quads0$quads0))
- + quads0 <- readRAST6("quads0", plugin=FALSE)
- + print(table(quads0$quads0))
- + execGRASS("g.remove", rast="quads0")
- + set.ignore.stderrOption(ois)
- + }
- Loading required package: rgdal
- Geospatial Data Abstraction Library extensions to R successfully loaded
- Loaded GDAL runtime: GDAL 1.7.3, released 2010/11/10
- Path to GDAL shared files: /usr/share/gdal/1.7
- Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
- Path to PROJ.4 shared files: (autodetected)
- metamorphic transition igneous sandstone limestone shale
- 103920 1220 327292 674570 552230 416870
- sandy shale claysand sand
- 101900 130640 329370
- 1 metamorphic 103920
- 2 transition 1220
- 3 igneous 327292
- 4 sandstone 674570
- 5 limestone 552230
- 6 shale 416870
- 7 sandy shale 101900
- 8 claysand 130640
- 9 sand 329370
- * no data 16790
- GRASS 7.0.svn (spearfish70):~/temp/rspatial/pkg >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement