R/Grass Interface
On Tue, 14 Apr 2009, milton ruser wrote:
Nicholas,
I have the same problem, and change to R 2.9.0 and the things works fine
under windows Vista. But the preparing my command to send to system("...")
we need to include the .exe on the command. According to Roger Bivand, this
issue will be solve on next versions.
Try install R 2.9.0 alpha, and good luck.
2.9.0 is due later this week, so I'd wait for the official release. The R version isn't the problem - the problem is that (your choice of) Windows Native GRASS 6.3, 6.4, GRASS on Cygwin, QGIS (any version) vary in how they name executable commands. In principle QGIS runs through msys, so sets a Windows environment variable to say so, but things may vary from version to version of GRASS through QGIS. The forthcoming spgrass_0.6-* release tries to centralise the reading of the auspices wrt. which Windows version is running, and provides an execGRASS() function wrapping a doGRASS() function building a command line for system(), and based on parseGRASS(), which reads the GRASS command interface description. Unix (GNU Linux/OSX/etc) users have access to the source by anonymous CVS on sourceforge on the r-spatial project; a draft Windows release is at: http://spatial.nhh.no/R/Devel/spgrass6_0.6-3.zip Nicholas - could you please try the draft and see if it helps? Best wishes, Roger
best wishes miltinho brazil-toronto On Mon, Apr 13, 2009 at 5:55 PM, Nicholas N Nagle < Nicholas.Nagle at colorado.edu> wrote:
Dear list, I am trying to load the spgrass6 library from within GRASS. I am running R 2.8.0 and GRASS6.4 from within QGIS (i.e. Plugins -> GRASS -> Open Grass Tools -> Shell). Here is the problem I am getting:
library(spgrass6)
Error in system(paste("g.version", .addexe(), sep = ""), intern = TRUE) :
g.version not found
In addition: Warning message:
package 'spgrass6' was built under R version 2.8.1
Error in library(spgrass6) : .First.lib failed for 'spgrass6'
The warning, is usual for me, and has not caused any problems in the past.
I don't know if this helps, but I also get:
system("g.version")
Warning message:
In system("g.version") : g.version not found
system("g.version.exe")
GRASS 6.4.0svn (2009) so I CAN run g.version.exe, but not g.version. Is this a problem for spgrass6? Thanks, Nicholas Nicholas N. Nagle, Assistant Professor University of Colorado Department of Geography UCB 260, Guggenheim 110 Boulder, CO 80309-0260 phone: 303-492-4794
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no