[GRASS-user] Need Help with R in GRASS

Mehrdad Varedi varedi at gmail.com
Sat Oct 20 22:23:19 PDT 2018


Thanks Micha, Problem solved!

ᐧ

On Sun, Oct 21, 2018 at 1:03 AM Micha Silver <tsvibar at gmail.com> wrote:

>
> On 10/21/18 7:20 AM, Mehrdad Varedi wrote:
>
> I run Rgui in GRASS and tried to run a simple command to see how GRASS
> works in R. I tried g.list type=vect. the format I used was:
>                                       doGRASS("g.list",
> parameters=list(type="vect"))
>
> The output was: >>
>
> GRASS command: g.list.exe type=rast
>  chr "g.list.exe type=vector"
>  - attr(*, "cmd")= chr "g.list.exe"
>
> Why I don't get the results I get from running it in GRASS. (like the
> following)
>
>
> Use execGRASS(...) instead.
>
> The R command "doGRASS" does not return the output, just the command name
> that you called. Whereas execGRASS does print the command output. (Check
> ?doGRASS in R). You would use doGRASS in cases where you are creating a new
> vector or raster.
>
>
> POM
> PsOnMain
>
> Any idea?
>
> Have a great one,
>
> Mehrdad
>
> .............
> Mehrdad Varedi
>>
> _______________________________________________
> grass-user mailing listgrass-user at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/grass-user
>
> --
> Micha Silver
> Ben Gurion Univ.
> Sde Boker, Remote Sensing Lab
> cell: +972-523-665918
>
>

-- 
Mehrdad Varedi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181021/57d4ce2d/attachment.html>


More information about the grass-user mailing list