Hi Daniel, <br><br>No, as it was I was trying to run things through R. Grass was (is) running, but just incidentally. Your comment made me think I needed to run initGRASS() first, so I tried, but got the following: <br><br>
> initGRASS(gisBase="/Library/GRASS/6.4", gisDbase="/Users/timholland/Documents/GIS/Vietnam_General/VN_GrassDbase")<br>Error in initGRASS(gisBase = "/Library/GRASS/6.4", gisDbase = "/Users/timholland/Documents/GIS/Vietnam_General/VN_GrassDbase") : <br>
A GISRC file already exists; to override, set override=TRUE<br><br>Should I be running R through GRASS? (as opposed to vice-versa, as had been my understanding). If so, how do I do that? <br><br>Again, sorry for really basic questions, but thank you for the help. <br>
<br>Best, <br>Tim<br><br><br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 3:52 PM, Daniel McInerney <span dir="ltr"><<a href="mailto:daniel.mcinerney@ucd.ie">daniel.mcinerney@ucd.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Tim,<br>
Is R running within a GRASS session?<br>
<br>
Regards,<br>
Daniel.<br>
<br>
Tim Holland wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello, <br>
I'm sorry to keep making so much noise on the list for what I'm sure are<br>
basic questions. <br>
I am having trouble loading in a GRASS raster into R using the readRAST6<br>
command. <br>
Using: <br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
readRAST6("rasterMap",mapset="/Users/etc/my_mapset")<br>
<br>
</blockquote>
<br>
I get the following error:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Error in if (file.exists(file) == FALSE) if (!missing(asText) && asText == <br>
</blockquote>
: argument is of length zero<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Error in parseGRASS(cmd) : g.region not parsed<br>
sh: g.region: command not found<br>
<br>
</blockquote>
<br>
Is there something I am doing wrong here? <br>
Also, when I am working with spgrass6 in general, should I have my working<br>
directory set to the GRASS DBase I am using, or does that matter? <br>
Thank you for the help, Tim<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
sessionInfo()<br>
<br>
</blockquote>
R version 2.9.2 (2009-08-24) i386-apple-darwin8.11.1 <br>
locale:<br>
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8<br>
<br>
attached base packages:<br>
[1] stats graphics grDevices utils datasets methods base <br>
other attached packages:<br>
[1] spgrass6_0.6-9 XML_2.6-0 rgdal_0.6-12 sp_0.9-44 <br>
loaded via a namespace (and not attached):<br>
[1] grid_2.9.2 lattice_0.17-25<br>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br>