<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Helvetica Neue";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",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.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.ydpa6a6511er-in
        {mso-style-name:ydpa6a6511er-in;}
span.ydpa6a6511efu
        {mso-style-name:ydpa6a6511efu;}
span.ydpa6a6511eop
        {mso-style-name:ydpa6a6511eop;}
span.ydpa6a6511est
        {mso-style-name:ydpa6a6511est;}
span.ydpa6a6511ecn
        {mso-style-name:ydpa6a6511ecn;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 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="NO-BOK" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Bernardo,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Seems like GRASS GIS isn`t installed on the CI VM.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Please see:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><a href="https://github.com/NINAnor/oneimpact/pulls">https://github.com/NINAnor/oneimpact/pulls</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">You may add UbuntuGIS PPAs if you want other versions than shipped by plain Ubuntu.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Stefan<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="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 lang="EN-US">From:</span></b><span lang="EN-US"> grass-user <grass-user-bounces@lists.osgeo.org>
<b>On Behalf Of </b>Bernardo Santos via grass-user<br>
<b>Sent:</b> fredag 26. august 2022 12:56<br>
<b>To:</b> grass-stats@lists.osgeo.org; GRASS User List <grass-user@lists.osgeo.org><br>
<b>Subject:</b> [GRASS-user] Running r-grass examples when building a R package<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">Dear all,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">I am building a R package and some of the functions use rgrass to connect to a GRASS project and run thingfs within GRASS.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">I have now set up a webpage for the package using pkgdown in integrated to Github actions. This means when I push new commits all the examples of R functions are run again
 and the webpage is updated with the results of the examples. Here is the webpage: <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fninanor.github.io%2Foneimpact%2F&data=05%7C01%7CStefan.Blumentrath%40nina.no%7C4ec863c6b2d14350bafa08da8751a786%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637971082028512352%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tLKgU9W3QU2M9Jyr4lWtCa3qDuvvH%2B4d41sewIzdYPU%3D&reserved=0" target="_blank">https://ninanor.github.io/oneimpact/</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">All works fine, except the functions calling GRASS. When I run the examples form my local computer everything works, but in the Github actions it does not run, apparently
 because the command<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
</div>
<div>
<div style="mso-element:para-border-div;border:solid #DEE2E6 1.0pt;padding:0cm 0cm 0cm 0cm;background:#F1F3F5">
<pre style="background:#F1F3F5;border:none;padding:0cm"><span class="ydpa6a6511efu"><span style="color:#4758AB"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Frdrr.io%2Fr%2Fbase%2Fsystem.html&data=05%7C01%7CStefan.Blumentrath%40nina.no%7C4ec863c6b2d14350bafa08da8751a786%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637971082028512352%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Xlu8yfS8TnTLHdkRc91AGeQI8fUCDpRdCbySjheiaNY%3D&reserved=0" target="_blank">system</a></span></span><span class="ydpa6a6511eop"><span style="color:#5E5E5E">(</span></span><span class="ydpa6a6511est"><span style="color:#20794D">"grass78 --config path"</span></span><span class="ydpa6a6511er-in"><span style="color:#003B4F">, intern </span></span><span class="ydpa6a6511eop"><span style="color:#5E5E5E">=</span></span><span class="ydpa6a6511er-in"><span style="color:#003B4F"> </span></span><span class="ydpa6a6511ecn"><span style="color:#8F5902">T</span></span><span class="ydpa6a6511eop"><span style="color:#5E5E5E">)</span></span><span style="font-size:10.5pt;color:black"><o:p></o:p></span></pre>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">to find the GRASS folder and use within rgrass::initGRASS does not work, so the connection between R and GRASS do not exist.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">Does someone in the group has experience with that and could help with hints to solve it?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">Is there a recommended way to make sure Github actions know where GRASS is and use it?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">Best<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Helvetica Neue",serif">Bernardo<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>