Re: [GRASS-user] Using RStudio in a GRASS GIS session
First tell us exactly what you do. Do you start GRASS first (how was GRASS installed, which version?), then what? The first message suggests a failed GRASS installation. Can you use GRASS at all? Try to run any regular example on the data in your location in GRASS to check that GRASS works before anything else. --- Roger Bivand Emeritus Professor Department of Economics Norwegian School of Economics, Bergen, Norway Fra: sibylle.stoec...@gmx.ch Sendt: fredag, april 19, 2024 5:56:04 p.m. Til: Roger Bivand Kopi: grass-user@lists.osgeo.org Emne: RE: [GRASS-user] Using RStudio in a GRASS GIS session Dear community Dear Roger I suppose it is my name Here the output from the console: C:\Users\Sibylle Stöckli> C:\Users\Sibylle Stöckli> ERROR: Unable to read WIND file: not enough values to unpack (expected 2, got 1) library(rgrass) Der Befehl "library" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Kind regards Sibylle -Original Message- From: Roger Bivand Sent: Friday, April 19, 2024 4:31 PM To: sibylle.stoec...@gmx.ch Cc: grass-user@lists.osgeo.org Subject: Re: [GRASS-user] Using RStudio in a GRASS GIS session Please see: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Frsbivand.github.io%2Frgrass%2Farticles%2Fuse.html&data=05%7C02%7CRoger.Bivand%40nhh.no%7C04d6d2c547b14550ec5f08dc608936de%7C33a15b2f849941998d56f20b5aa91af2%7C0%7C0%7C638491389645818206%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3fLYSzCE3uRNBetqb69RxZz%2FzLiv%2F1LuBFkdb%2B19nsA%3D&reserved=0<https://rsbivand.github.io/rgrass/articles/use.html>. https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Frsbivand.github.io%2Frgrass%2Farticles%2Fuse.html&data=05%7C02%7CRoger.Bivand%40nhh.no%7C04d6d2c547b14550ec5f08dc608936de%7C33a15b2f849941998d56f20b5aa91af2%7C0%7C0%7C638491389645826443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=zM%2Fia4%2BGNTgKd%2Bjxo3HVJnDgt02JrI9CSyx%2F1AtwK%2FU%3D&reserved=0<https://rsbivand.github.io/rgrass/articles/use.html> Do you have a GRASS location and wish to use R on the data in that location? Then start GRASS first and start rstudio from inside GRASS. The error messages suggest that something is missing in your installation. Is your query related to https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fpipermail%2Fr-help%2F2024-April%2F479232.html&data=05%7C02%7CRoger.Bivand%40nhh.no%7C04d6d2c547b14550ec5f08dc608936de%7C33a15b2f849941998d56f20b5aa91af2%7C0%7C0%7C638491389645832105%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=i1bTT5y7lmJcG1MtEniurDJsEYbK63t0UB%2BSagiLmMM%3D&reserved=0<https://stat.ethz.ch/pipermail/r-help/2024-April/479232.html> ? -- Roger Bivand Emeritus Professor Norwegian School of Economics Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway roger.biv...@nhh.no ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
Dear community Dear Roger I suppose it is my name Here the output from the console: C:\Users\Sibylle Stöckli> C:\Users\Sibylle Stöckli> ERROR: Unable to read WIND file: not enough values to unpack (expected 2, got 1) library(rgrass) Der Befehl "library" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Kind regards Sibylle -Original Message- From: Roger Bivand Sent: Friday, April 19, 2024 4:31 PM To: sibylle.stoec...@gmx.ch Cc: grass-user@lists.osgeo.org Subject: Re: [GRASS-user] Using RStudio in a GRASS GIS session Please see: https://rsbivand.github.io/rgrass/articles/use.html. https://rsbivand.github.io/rgrass/articles/use.html Do you have a GRASS location and wish to use R on the data in that location? Then start GRASS first and start rstudio from inside GRASS. The error messages suggest that something is missing in your installation. Is your query related to https://stat.ethz.ch/pipermail/r-help/2024-April/479232.html ? -- Roger Bivand Emeritus Professor Norwegian School of Economics Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway roger.biv...@nhh.no ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
Please see: https://rsbivand.github.io/rgrass/articles/use.html. https://rsbivand.github.io/rgrass/articles/use.html Do you have a GRASS location and wish to use R on the data in that location? Then start GRASS first and start rstudio from inside GRASS. The error messages suggest that something is missing in your installation. Is your query related to https://stat.ethz.ch/pipermail/r-help/2024-April/479232.html ? -- Roger Bivand Emeritus Professor Norwegian School of Economics Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway roger.biv...@nhh.no ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
Dear community Thank you very much for all your input. Unfortunately I got always the same error The command "rstudio" is either misspelled or could not be found. The command "GRASS" is either misspelled or could not be found. Find here some info about the operating system: GRASS version: 8.3.2 Code revision: 695385bb79 Build date: 2024-03-07 Build platform: x86_64-w64-mingw32 GDAL: 3.8.4 PROJ: 9.3.1 GEOS: 3.12.1 SQLite: 3.41.1 Python: 3.9.18 wxPython: 4.2.1 Platform: Windows-10-10.0.19045-SP0 . Kind regards Sibylle From: grass-user On Behalf Of Bernardo Santos via grass-user Sent: Friday, April 19, 2024 11:09 AM To: Veronica Andreo ; Veronica Andreo via grass-user ; Micha Silver ; Paulo van Breugel Subject: Re: [GRASS-user] Using RStudio in a GRASS GIS session Hi Sybille, 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). 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: Connecting to GRASS from R in Windows · Issue #10 · NINAnor/oneimpact (github.com) <https://github.com/NINAnor/oneimpact/issues/10> Best Bernardo Em sexta-feira, 19 de abril de 2024 às 08:13:40 GMT+2, Paulo van Breugel via grass-user mailto:grass-user@lists.osgeo.org> > escreveu: >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 mailto:grass-user@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 (mailto:grass-user@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 list grass-user@lists.osgeo.org <mailto:grass-user@lists.osgeo.org> https://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@lists.osgeo.org <mailto:grass-user@lists.osgeo.org> https://lists.osgeo.org/mailman/listinfo/grass-user ___
Re: [GRASS-user] Using RStudio in a GRASS GIS session
Hi Sybille, 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). 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: Connecting to GRASS from R in Windows · Issue #10 · NINAnor/oneimpact (github.com) BestBernardo Em sexta-feira, 19 de abril de 2024 às 08:13:40 GMT+2, Paulo van Breugel via grass-user escreveu: 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 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 () 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 list grass-user@lists.osgeo.org https://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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
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 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@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@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@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 40 int. 1153 >https://veroandreo.gitlab.io/ ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
Ok, so it is on Windows. How did you install GRASS and how/where are you calling R from? Is it from the GRASS terminal? Does it actually opens an R session? the library command is a basic R function, so it is weird that it is not recognized. This is what I see in my Linux box: vandreo@arches:~$ grass Starting GRASS GIS... __ ___ _____ / / __ \/ | / ___/ ___/ / / _/ ___/ / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \ / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ / \/_/ |_/_/ |_/// \/___/// Welcome to GRASS GIS 8.3.0 GRASS GIS homepage: https://grass.osgeo.org This version running through:Bash Shell (/bin/bash) Help is available with the command: g.manual -i See the licence terms with: g.version -c See citation options with: g.version -x If required, restart the GUI with: g.gui wxpython When ready to quit enter:exit Launching GUI in the background, please wait... GRASS nc_basic_spm_grass7/PERMANENT:~ > R R version 4.3.1 (2023-06-16) -- "Beagle Scouts" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(rgrass) GRASS GIS interface loaded with GRASS version: GRASS 8.3.0 (2023) and location: nc_basic_spm_grass7 > How does it look like there? El jue, 18 abr 2024 a las 14:02, escribió: > Dear Veronica and Micha > > > > Find enclosed some info about the operative system: > > > > System > Info > > GRASS version: > 8.3.2 > > Code revision: > 695385bb79 > > Build date: > 2024-03-07 > > Build platform: > x86_64-w64-mingw32 > > GDAL: > 3.8.4 > > PROJ: > 9.3.1 > > GEOS: > 3.12.1 > > SQLite: > 3.41.1 > > Python: > 3.9.18 > > wxPython: > 4.2.1 > > Platform: Windows-10-10.0.19045-SP0 > > > > > > Similarly when using library(rgrass) the same error: "library" is either > misspelled or > > could not be found. > > > > library(rgrass) > > > Der Befehl "library" ist entweder falsch geschrieben oder > > konnte nicht gefunden werden. > > (Thu Apr 18 19:59:40 2024) Command ended with non-zero return code 1 (0 > sec) > > > > Kind regards > > Sibylle > > > > *From:* Veronica Andreo > *Sent:* Thursday, April 18, 2024 7:56 PM > *To:* Micha Silver > *Cc:* sibylle.stoec...@gmx.ch; grass-user@lists.osgeo.org > *Subject:* Re: [GRASS-user] Using RStudio in a GRASS GIS session > > > > 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@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
Re: [GRASS-user] Using RStudio in a GRASS GIS session
Dear Veronica and Micha Find enclosed some info about the operative system: System Info GRASS version: 8.3.2 Code revision: 695385bb79 Build date: 2024-03-07 Build platform: x86_64-w64-mingw32 GDAL: 3.8.4 PROJ: 9.3.1 GEOS: 3.12.1 SQLite: 3.41.1 Python: 3.9.18 wxPython: 4.2.1 Platform: Windows-10-10.0.19045-SP0 Similarly when using library(rgrass) the same error: "library" is either misspelled or could not be found. library(rgrass) Der Befehl "library" ist entweder falsch geschrieben oder konnte nicht gefunden werden. (Thu Apr 18 19:59:40 2024) Command ended with non-zero return code 1 (0 sec) Kind regards Sibylle From: Veronica Andreo Sent: Thursday, April 18, 2024 7:56 PM To: Micha Silver Cc: sibylle.stoec...@gmx.ch; grass-user@lists.osgeo.org Subject: Re: [GRASS-user] Using RStudio in a GRASS GIS session 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 (mailto:grass-user@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 list grass-user@lists.osgeo.org <mailto:grass-user@lists.osgeo.org> https://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@lists.osgeo.org <mailto:grass-user@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 40 int. 1153 https://veroandreo.gitlab.io/ ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
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@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@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@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 40 int. 1153 https://veroandreo.gitlab.io/ ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Using RStudio in a GRASS GIS session
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 list grass-user@lists.osgeo.org https://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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Using RStudio in a GRASS GIS session
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 list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user