[GRASS-user] Using RStudio in a GRASS GIS session

Paulo van Breugel p.vanbreugel at gmail.com
Thu Apr 18 23:13:31 PDT 2024


From the message that library is not found, I wonder, did you type 

GRASS> rstudio & library(grass) 

all on the command line? 

Just to be sure, you should ope Grass gis. And in the grass gis command line, type

rstudio &

Next, after RStudio opens,  you type the following in RStudio

library(grass)




On April 18, 2024 7:56:03 PM GMT+02:00, Veronica Andreo via grass-user <grass-user at lists.osgeo.org> wrote:
>Hello Sibylle,
>
>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.
>
>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>`).
>
>Vero
>
>El jue, 18 abr 2024 a las 12:06, Micha Silver via grass-user (<
>grass-user at lists.osgeo.org>) escribió:
>
>> Silly question, do you have the 'rgrass' library installed?
>>
>> i.e. can you do `library(rgrass)` at the R command prompt (without
>> rstudio)?
>>
>>
>>
>> On 17/04/2024 21:34, sibylle via grass-user wrote:
>>
>> Dear community
>>
>> To use RStudio in a GRASS GIS session I used the command line
>> GRASS> rstudio &
>> library(rgrass)
>> (see https://grasswiki.osgeo.org/wiki/R_statistics/rgrass)
>>
>> 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 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
>>
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>
>-- 
>Dra. Verónica Andreo
>Investigadora Adjunta de CONICET
>Instituto Gulich (CONAE - UNC)
>Centro Espacial Teófilo Tabanera (CETT)
>Falda del Cañete - Córdoba, Argentina
>+54 3547 400000 int. 1153
>https://veroandreo.gitlab.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20240419/46250db3/attachment.htm>


More information about the grass-user mailing list