Advertisement
Guest User

Untitled

a guest
Mar 8th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. emomsen@gisdev:~/temp/rspatial/pkg$ grass70
  2. Cleaning up temporary files...
  3. Starting GRASS GIS...
  4.  
  5.  
  6. __________ ___ __________ _______________
  7. / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
  8. / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
  9. / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
  10. \____/_/ |_/_/ |_/____/____/ \____/___//____/
  11.  
  12. Welcome to GRASS 7.0.svn
  13. GRASS homepage: http://grass.osgeo.org
  14. This version running through: Bash Shell (/bin/bash)
  15. Help is available with the command: g.manual -i
  16. See the licence terms with: g.version -c
  17. If required, restart the GUI with: g.gui wxpython
  18. When ready to quit enter: exit
  19.  
  20. Launching <wxpython> GUI in the background, please wait...
  21. GRASS 7.0.svn (spearfish70):~/temp/rspatial/pkg > R CMD check spgrass6
  22. * using log directory ‘/home/emomsen/temp/rspatial/pkg/spgrass6.Rcheck’
  23. * using R version 2.14.1 (2011-12-22)
  24. * using platform: x86_64-pc-linux-gnu (64-bit)
  25. * using session charset: UTF-8
  26. * checking for file ‘spgrass6/DESCRIPTION’ ... OK
  27. * this is package ‘spgrass6’ version ‘0.7-9’
  28. * checking package namespace information ... OK
  29. * checking package dependencies ... OK
  30. * checking if this is a source package ... OK
  31. * checking if there is a namespace ... OK
  32. * checking for executable files ... OK
  33. * checking whether package ‘spgrass6’ can be installed ... OK
  34. * checking installed package size ... OK
  35. * checking package directory ... OK
  36. * checking for portable file names ... OK
  37. * checking for sufficient/correct file permissions ... OK
  38. * checking DESCRIPTION meta-information ... OK
  39. * checking top-level files ... OK
  40. * checking index information ... OK
  41. * checking package subdirectories ... OK
  42. * checking R files for non-ASCII characters ... OK
  43. * checking R files for syntax errors ... OK
  44. * checking whether the package can be loaded ... OK
  45. * checking whether the package can be loaded with stated dependencies ... OK
  46. * checking whether the package can be unloaded cleanly ... OK
  47. * checking whether the namespace can be loaded with stated dependencies ... OK
  48. * checking whether the namespace can be unloaded cleanly ... OK
  49. * checking for unstated dependencies in R code ... OK
  50. * checking S3 generic/method consistency ... OK
  51. * checking replacement functions ... OK
  52. * checking foreign function calls ... OK
  53. * checking R code for possible problems ... OK
  54. * checking Rd files ... OK
  55. * checking Rd metadata ... OK
  56. * checking Rd cross-references ... OK
  57. * checking for missing documentation entries ... OK
  58. * checking for code/documentation mismatches ... OK
  59. * checking Rd \usage sections ... OK
  60. * checking Rd contents ... OK
  61. * checking for unstated dependencies in examples ... OK
  62. * checking examples ... ERROR
  63. Running examples in ‘spgrass6-Ex.R’ failed
  64. The error most likely occurred in:
  65.  
  66. > ### Name: readRAST6
  67. > ### Title: Read and write GRASS 6+ raster files
  68. > ### Aliases: readRAST6 writeRAST6
  69. > ### Keywords: spatial
  70. >
  71. > ### ** Examples
  72. >
  73. > if (nchar(Sys.getenv("GISRC")) > 0) {
  74. + require(rgdal)
  75. + ois <- get.ignore.stderrOption()
  76. + set.ignore.stderrOption(TRUE)
  77. + get.useGDALOption()
  78. + spear <- readRAST6(c("geology", "elevation.dem"), cat=c(TRUE, FALSE),
  79. + useGDAL=FALSE)
  80. + spear <- readRAST6(c("geology", "elevation.dem"), cat=c(TRUE, FALSE),
  81. + useGDAL=TRUE)
  82. + print(table(spear$geology))
  83. + execGRASS("r.stats", flags=c("c", "l", "quiet"), input="geology")
  84. + boxplot(spear$elevation.dem ~ spear$geology)
  85. + spear$sqdem <- sqrt(spear$elevation.dem)
  86. + if ("GRASS" %in% gdalDrivers()$name) {
  87. + execGRASS("g.region", rast="elevation.dem")
  88. + dem1 <- readRAST6("elevation.dem", plugin=TRUE, mapset="PERMANENT")
  89. + print(summary(dem1))
  90. + execGRASS("g.region", rast="elevation.dem")
  91. + }
  92. + writeRAST6(spear, "sqdemSP", zcol="sqdem")
  93. + execGRASS("r.info", map="sqdemSP")
  94. + execGRASS("g.remove", rast="sqdemSP")
  95. + writeRAST6(spear, "sqdemSP", zcol="sqdem", useGDAL=TRUE)
  96. + execGRASS("r.info", map="sqdemSP")
  97. + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
  98. + useGDAL=TRUE, return_SGDF=FALSE)))
  99. + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
  100. + useGDAL=TRUE, return_SGDF=TRUE)))
  101. + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
  102. + useGDAL=FALSE, return_SGDF=TRUE)))
  103. + print(system.time(sqdemSP <- readRAST6(c("sqdemSP", "elevation.dem"),
  104. + useGDAL=FALSE, return_SGDF=FALSE)))
  105. + str(sqdemSP)
  106. + mat <- do.call("cbind", sqdemSP$dataList)
  107. + str(mat)
  108. + print(system.time(SGDF <- SpatialGridDataFrame(grid=sqdemSP$grid,
  109. + proj4string=sqdemSP$proj4string, data=as.data.frame(sqdemSP$dataList))))
  110. + summary(SGDF)
  111. + execGRASS("g.remove", rast="sqdemSP")
  112. + if (execGRASS("g.version", intern=TRUE) > "GRASS 7") {
  113. + execGRASS("r.mapcalc", expression="quads0 = quads - 1")
  114. + } else {
  115. + execGRASS("r.mapcalculator", outfile="quads0",
  116. + amap="quads", formula='A - 1')
  117. + }
  118. + execGRASS("r.stats", flags="c", input="quads0")
  119. + quads0 <- readRAST6("quads0")
  120. + print(table(quads0$quads0))
  121. + quads0 <- readRAST6("quads0", plugin=FALSE)
  122. + print(table(quads0$quads0))
  123. + execGRASS("g.remove", rast="quads0")
  124. + set.ignore.stderrOption(ois)
  125. + }
  126. Loading required package: rgdal
  127. Geospatial Data Abstraction Library extensions to R successfully loaded
  128. Loaded GDAL runtime: GDAL 1.7.3, released 2010/11/10
  129. Path to GDAL shared files: /usr/share/gdal/1.7
  130. Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
  131. Path to PROJ.4 shared files: (autodetected)
  132.  
  133. metamorphic transition igneous sandstone limestone shale
  134. 103920 1220 327292 674570 552230 416870
  135. sandy shale claysand sand
  136. 101900 130640 329370
  137. 1 metamorphic 103920
  138. 2 transition 1220
  139. 3 igneous 327292
  140. 4 sandstone 674570
  141. 5 limestone 552230
  142. 6 shale 416870
  143. 7 sandy shale 101900
  144. 8 claysand 130640
  145. 9 sand 329370
  146. * no data 16790
  147. GRASS 7.0.svn (spearfish70):~/temp/rspatial/pkg >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement