<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Dear community<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Thank you very much for all your input.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Unfortunately I got always the same error<br><br><o:p></o:p></span></p><pre><span style='color:#26282A'>The command "rstudio" is either misspelled or<o:p></o:p></span></pre><pre><span style='color:#26282A'>could not be found.<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>The command "GRASS" is either misspelled or<o:p></o:p></span></pre><pre><span style='color:#26282A'>could not be found.<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Find here some info about the operating system:<o:p></o:p></span></p><pre><span style='color:#26282A'>GRASS version: 8.3.2 <o:p></o:p></span></pre><pre><span style='color:#26282A'>Code revision: 695385bb79 <o:p></o:p></span></pre><pre><span style='color:#26282A'>Build date: 2024-03-07 <o:p></o:p></span></pre><pre><span style='color:#26282A'>Build platform: x86_64-w64-mingw32 <o:p></o:p></span></pre><pre><span style='color:#26282A'>GDAL: 3.8.4 <o:p></o:p></span></pre><pre><span style='color:#26282A'>PROJ: 9.3.1 <o:p></o:p></span></pre><pre><span style='color:#26282A'>GEOS: 3.12.1 <o:p></o:p></span></pre><pre><span style='color:#26282A'>SQLite: 3.41.1 <o:p></o:p></span></pre><pre><span style='color:#26282A'>Python: 3.9.18 <o:p></o:p></span></pre><pre><span style='color:#26282A'>wxPython: 4.2.1 <o:p></o:p></span></pre><pre><span style='color:#26282A'>Platform: Windows-10-10.0.19045-SP0 .<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Kind regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Sibylle<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> grass-user <grass-user-bounces@lists.osgeo.org> <b>On Behalf Of </b>Bernardo Santos via grass-user<br><b>Sent:</b> Friday, April 19, 2024 11:09 AM<br><b>To:</b> Veronica Andreo <veroandreo@gmail.com>; Veronica Andreo via grass-user <grass-user@lists.osgeo.org>; Micha Silver <tsvibar@gmail.com>; Paulo van Breugel <p.vanbreugel@gmail.com><br><b>Subject:</b> Re: [GRASS-user] Using RStudio in a GRASS GIS session<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'>Hi Sybille,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'>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).<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'>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: <a href="https://github.com/NINAnor/oneimpact/issues/10" target="_blank">Connecting to GRASS from R in Windows · Issue #10 · NINAnor/oneimpact (github.com)</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'>Best<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'>Bernardo<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div></div><div id="yahoo_quoted_4332050197"><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>Em sexta-feira, 19 de abril de 2024 às 08:13:40 GMT+2, Paulo van Breugel via grass-user <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>> escreveu: <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p></div><div><div id=yiv7149304320><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>From the message that library is not found, I wonder, did you type <br><br>GRASS> rstudio & library(grass) <br><br>all on the command line? <br><br>Just to be sure, you should ope Grass gis. And in the grass gis command line, type<br><br>rstudio &<br><br>Next, after RStudio opens, you type the following in RStudio<br><br>library(grass)<br><br><o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p><div><div id=yiv7149304320yqtfd43535><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>On April 18, 2024 7:56:03 PM GMT+02:00, Veronica Andreo via grass-user <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>> wrote:<o:p></o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>Hello Sibylle,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>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. <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>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>`).<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>Vero<o:p></o:p></span></p></div></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>El jue, 18 abr 2024 a las 12:06, Micha Silver via grass-user (<<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>>) escribió:<o:p></o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p><span style='font-size:13.5pt;font-family:"Helvetica",sans-serif;color:#26282A'>Silly question, do you have the 'rgrass' library installed?</span><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p></o:p></span></p><p><span style='font-size:13.5pt;font-family:"Helvetica",sans-serif;color:#26282A'>i.e. can you do `library(rgrass)` at the R command prompt (without rstudio)?</span><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p><p><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>On 17/04/2024 21:34, sibylle via grass-user wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre><span style='color:#26282A'>Dear community<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>To use RStudio in a GRASS GIS session I used the command line<o:p></o:p></span></pre><pre><span style='color:#26282A'>GRASS> rstudio &<o:p></o:p></span></pre><pre><span style='color:#26282A'>library(rgrass)<o:p></o:p></span></pre><pre><span style='color:#26282A'>(see <a href="https://grasswiki.osgeo.org/wiki/R_statistics/rgrass" target="_blank">https://grasswiki.osgeo.org/wiki/R_statistics/rgrass</a>)<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>Unfortunately I was not able to solve the error message:<o:p></o:p></span></pre><pre><span style='color:#26282A'>- The command "GRASS" is either misspelled or<o:p></o:p></span></pre><pre><span style='color:#26282A'>could not be found.<o:p></o:p></span></pre><pre><span style='color:#26282A'>- The command "library" is either misspelled or<o:p></o:p></span></pre><pre><span style='color:#26282A'>could not be found.<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>Kind regards<o:p></o:p></span></pre><pre><span style='color:#26282A'>Sibylle<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>(Wed Apr 17 20:25:17 2024)<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>GRASS> rstudio &<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>Der Befehl "GRASS" ist entweder falsch geschrieben oder<o:p></o:p></span></pre><pre><span style='color:#26282A'>konnte nicht gefunden werden.<o:p></o:p></span></pre><pre><span style='color:#26282A'>(Wed Apr 17 20:25:17 2024) Command ended with non-zero return code 1 (0 sec)<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>(Wed Apr 17 20:25:29 2024)<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>library(rgrass)<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>Der Befehl "library" ist entweder falsch geschrieben oder<o:p></o:p></span></pre><pre><span style='color:#26282A'>konnte nicht gefunden werden.<o:p></o:p></span></pre><pre><span style='color:#26282A'>(Wed Apr 17 20:25:29 2024) Command ended with non-zero return code 1 (0 sec)<o:p></o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'><o:p> </o:p></span></pre><pre><span style='color:#26282A'>_______________________________________________<o:p></o:p></span></pre><pre><span style='color:#26282A'>grass-user mailing list<o:p></o:p></span></pre><pre><span style='color:#26282A'><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><o:p></o:p></span></pre><pre><span style='color:#26282A'><a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><o:p></o:p></span></pre></blockquote><pre><span style='color:#26282A'>-- <o:p></o:p></span></pre><pre><span style='color:#26282A'>Micha Silver<o:p></o:p></span></pre><pre><span style='color:#26282A'>Ben Gurion Univ.<o:p></o:p></span></pre><pre><span style='color:#26282A'>Sde Boker, Remote Sensing Lab<o:p></o:p></span></pre><pre><span style='color:#26282A'>cell: +972-523-665918<o:p></o:p></span></pre></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><o:p></o:p></span></p></div></blockquote></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><br clear=all><o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'><o:p> </o:p></span></p></div></blockquote></div></div></div></div><div id=yqtfd10049><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif;color:#26282A'>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><o:p></o:p></span></p></div></div></div></div></div></body></html>