<html><head></head><body><div class="ydpfb26da4eyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Hi Sybille,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I have never tried opening Rstudio from the GRASS terminal, but I know that it is possible to open R. So as others have mentioned, you could try to first open R (from the GRASS terminal) and within it try `library(rgrass)` (or `install.packages("rgrass")` if it was not installed yet).</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">But I also know there are some issues when working with both R/RStudio and GRASS in Windows, also related to how GRASS was installed and if R/Rstudio are recognized in the PATH variables. Please take a look at these notes here and check if any of that helps you: <span><a href="https://github.com/NINAnor/oneimpact/issues/10" rel="nofollow" target="_blank">Connecting to GRASS from R in Windows · Issue #10 · NINAnor/oneimpact (github.com)</a></span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Best</div><div dir="ltr" data-setdir="false">Bernardo</div><div><br></div>
</div><div id="yahoo_quoted_4332050197" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Em sexta-feira, 19 de abril de 2024 às 08:13:40 GMT+2, Paulo van Breugel via grass-user <grass-user@lists.osgeo.org> escreveu:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv7149304320"><div><div>From the message that library is not found, I wonder, did you type <br clear="none"><br clear="none">GRASS> rstudio & library(grass) <br clear="none"><br clear="none">all on the command line? <br clear="none"><br clear="none">Just to be sure, you should ope Grass gis. And in the grass gis command line, type<br clear="none"><br clear="none">rstudio &<br clear="none"><br clear="none">Next, after RStudio opens, you type the following in RStudio<br clear="none"><br clear="none">library(grass)<br clear="none"><br clear="none"><br clear="none"></div><br clear="none"><br clear="none"><div class="yiv7149304320gmail_quote"><div id="yiv7149304320yqtfd43535" class="yiv7149304320yqt7877992477"><div>On April 18, 2024 7:56:03 PM GMT+02:00, Veronica Andreo via grass-user <grass-user@lists.osgeo.org> wrote:</div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex;" class="yiv7149304320gmail_quote">
<div dir="ltr"><div>Hello Sibylle,</div><div><br clear="none"></div><div>Perhaps you can tell us some details about your operative system, which GRASS installer you are using (i.e., standalone or OSGeo4W), how did you start GRASS, if R and RStudio are installed. </div><div><br clear="none"></div><div>From your email, I do not understand why GRASS is not recognized as a command, as it seems you **are** already within a GRASS session on the terminal? (i.e. you have a GRASS prompt there `GRASS>`).</div><div><br clear="none"></div><div>Vero</div></div><br clear="none"><div class="yiv7149304320gmail_quote"><div dir="ltr" class="yiv7149304320gmail_attr">El jue, 18 abr 2024 a las 12:06, Micha Silver via grass-user (<<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:grass-user@lists.osgeo.org" target="_blank" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>>) escribió:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" class="yiv7149304320gmail_quote"><div class="yiv7149304320msg-8226493738632762146"><u></u>
<div style="direction:ltr;">
<p><font size="4">Silly question, do you have the 'rgrass' library
installed?</font></p>
<p><font size="4">i.e. can you do `library(rgrass)` at the R command
prompt (without rstudio)?</font></p>
<p><font size="4"><br clear="none">
</font></p>
<p><font size="4"><br clear="none">
</font></p>
<div>On 17/04/2024 21:34, sibylle via
grass-user wrote:<br clear="none">
</div>
<blockquote type="cite">
<pre>Dear community
To use RStudio in a GRASS GIS session I used the command line
GRASS> rstudio &
library(rgrass)
(see <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://grasswiki.osgeo.org/wiki/R_statistics/rgrass">https://grasswiki.osgeo.org/wiki/R_statistics/rgrass</a>)
Unfortunately I was not able to solve the error message:
- The command "GRASS" is either misspelled or
could not be found.
- The command "library" is either misspelled or
could not be found.
Kind regards
Sibylle
(Wed Apr 17 20:25:17 2024)
GRASS> rstudio &
Der Befehl "GRASS" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
(Wed Apr 17 20:25:17 2024) Command ended with non-zero return code 1 (0 sec)
(Wed Apr 17 20:25:29 2024)
library(rgrass)
Der Befehl "library" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
(Wed Apr 17 20:25:29 2024) Command ended with non-zero return code 1 (0 sec)
_______________________________________________
grass-user mailing list
<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:grass-user@lists.osgeo.org" target="_blank" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<pre>--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
</div>
_______________________________________________<br clear="none">
grass-user mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:grass-user@lists.osgeo.org" target="_blank" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br clear="none">
</div></blockquote></div><br clear="all"><div><br clear="none"></div></blockquote></div></div></div></div><div class="yqt7877992477" id="yqtfd10049">_______________________________________________<br clear="none">grass-user mailing list<br clear="none"><a shape="rect" ymailto="mailto:grass-user@lists.osgeo.org" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br clear="none"><a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br clear="none"></div></div>
</div>
</div></body></html>