<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=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* 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;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.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;}
/* List Definitions */
@list l0
{mso-list-id:287706809;
mso-list-type:hybrid;
mso-list-template-ids:-901594456 1222960370 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:1100374452;
mso-list-type:hybrid;
mso-list-template-ids:207384224 -998877626 134807555 134807557 134807553 134807555 134807557 134807553 134807555 134807557;}
@list l1:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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 Roger<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'>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'><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'>May aim is to use RStudio in a GRASS GIS session, to visualize raster and vector data: e.g. a boxplot of a species raster file or boxplot of a species raster file differentiated for different regions (vector file). <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'>Similar in <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'><a href="https://ecodiv.earth/post/drawing-boxplots-of-raster-values/">https://ecodiv.earth/post/drawing-boxplots-of-raster-values/</a><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'>Because of my name with “ö” I changed the location to C:/GrassGIS: this seems to be the solution for the error when staring GRASS. No warming anymore.<o:p></o:p></span></p><p class=MsoNormal><img border=0 width=488 height=227 style='width:5.0833in;height:2.3645in' id="Picture_x0020_2" src="cid:image002.png@01DA9324.1BBB33D0"><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'><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'><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'>Using the command line, I was able to produce a boxplot.<o:p></o:p></span></p><p class=MsoNormal><img border=0 width=509 height=267 style='width:5.302in;height:2.7812in' id="Picture_x0020_1" src="cid:image001.png@01DA9321.A9F85900"><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'><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'>I am more comfortable in R, so I tried starting R inside the GRASS console (as suggested for windows) following the code here:<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'><a href="https://rsbivand.github.io/rgrass/articles/use.html">https://rsbivand.github.io/rgrass/articles/use.html</a><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'>However, I am still struggling around with the error<o:p></o:p></span></p><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><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 lang=DE-CH style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>library(rgrass) <o:p></o:p></span></p><p class=MsoNormal><span lang=DE-CH style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>Der Befehl "library" ist entweder falsch geschrieben oder<o:p></o:p></span></p><p class=MsoNormal><span lang=DE-CH style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>konnte nicht gefunden werden.<o:p></o:p></span></p><p class=MsoNormal><span lang=DE-CH style='font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US'>(Sat Apr 20 12:57:24 2024) Command ended with non-zero return code 1 (0 sec) <o:p></o:p></span></p><p class=MsoNormal><span lang=DE-CH 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 lang=DE-CH 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 lang=DE-CH 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 lang=DE-CH 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 lang=DE-CH 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'> Roger Bivand <Roger.Bivand@nhh.no> <br><b>Sent:</b> Saturday, April 20, 2024 8:09 AM<br><b>To:</b> sibylle.stoeckli@gmx.ch<br><b>Cc:</b> grass-user@lists.osgeo.org<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><p class=MsoNormal>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.<o:p></o:p></p></div><div id=ms-outlook-mobile-signature><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>---<o:p></o:p></p></div><div><p class=MsoNormal>Roger Bivand<o:p></o:p></p></div><div><p class=MsoNormal>Emeritus Professor<o:p></o:p></p></div><div><p class=MsoNormal>Department of Economics<o:p></o:p></p></div><div><p class=MsoNormal>Norwegian School of Economics, Bergen, Norway<o:p></o:p></p></div></div><div id=mail-editor-reference-message-container><p class=MsoNormal><o:p> </o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="98%" align=center></div><div id=divRplyFwdMsg><p class=MsoNormal><strong><span style='font-size:11.0pt;font-family:"Aptos",sans-serif'>Fra:</span></strong><span style='font-size:11.0pt'> <a href="mailto:sibylle.stoeckli@gmx.ch">sibylle.stoeckli@gmx.ch</a> <<a href="mailto:sibylle.stoeckli@gmx.ch">sibylle.stoeckli@gmx.ch</a>><br><strong><span style='font-family:"Aptos",sans-serif'>Sendt:</span></strong> fredag, april 19, 2024 5:56:04 p.m.<br><strong><span style='font-family:"Aptos",sans-serif'>Til:</span></strong> Roger Bivand <<a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>><br><strong><span style='font-family:"Aptos",sans-serif'>Kopi:</span></strong> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a> <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>><br><strong><span style='font-family:"Aptos",sans-serif'>Emne:</span></strong> RE: [GRASS-user] Using RStudio in a GRASS GIS session<o:p></o:p></span></p></div><p class=MsoNormal><br><br><span style='font-size:11.0pt'><o:p></o:p></span></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt'>Dear community<br>Dear Roger<br><br>I suppose it is my name<br>Here the output from the console:<br><br>C:\Users\Sibylle Stöckli><br>C:\Users\Sibylle Stöckli><br>ERROR: Unable to read WIND file: not enough values to unpack (expected 2,<br>got 1)<br>library(rgrass)<br>Der Befehl "library" ist entweder falsch geschrieben oder<br>konnte nicht gefunden werden.<br><br>Kind regards<br>Sibylle<br><br>-----Original Message-----<br>From: Roger Bivand <<a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>> <br>Sent: Friday, April 19, 2024 4:31 PM<br>To: <a href="mailto:sibylle.stoeckli@gmx.ch">sibylle.stoeckli@gmx.ch</a><br>Cc: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>Subject: Re: [GRASS-user] Using RStudio in a GRASS GIS session<br><br>Please see: <a href="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%7C638491389645818206%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=3fLYSzCE3uRNBetqb69RxZz%2FzLiv%2F1LuBFkdb%2B19nsA%3D&reserved=0</a>.<br><a href="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</a><br><br>Do you have a GRASS location and wish to use R on the data in that location?<br>Then start GRASS first and start rstudio from inside GRASS.<br><br>The error messages suggest that something is missing in your installation.<br><br>Is your query related to<br><a href="https://stat.ethz.ch/pipermail/r-help/2024-April/479232.html">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</a> ?<br><br>--<br>Roger Bivand<br>Emeritus Professor<br>Norwegian School of Economics<br>Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a><o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>