[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-user
Subject:    Re: [GRASS-user] rgrass7 and rmarkdown: how to avoid showing the percentage of processing
From:       Markus Neteler <neteler () osgeo ! org>
Date:       2021-11-05 7:51:29
Message-ID: CALFmHhsPTvMJWw4ipytVti3gJTAitiaBDc2vsLUJ--WvVEEPzA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


Hi Bernardo,

Bernardo Santos via grass-user <grass-user@lists.osgeo.org> schrieb am Fr.,
5. Nov. 2021, 08:45:

> Hi,
> 
> when using rgrass7 and rmarkdown, is there a way of avoiding showing the
> percentage of processingo of each command within execGRASS?
> It might get really polluted, mainly when I perform a loop or many
> processings.
> See the figure below:
> [image: Imagem incorporada]
> 
> I tried adding "message = FALSE, warning = FALSE" to the chunks, but it
> does not work.
> 

GRASS GIS itself offers a shell variable to set the message style:

https://grass.osgeo.org/grass78/manuals/variables.html#list-of-selected-(grass-related)-shell-environment-variables


GRASS_MESSAGE_FORMAT[various modules, wxGUI]
it may be set to either

   - standard - sets percentage output and message formatting style to
   standard formatting,
   - gui - sets percentage output and message formatting style to GUI
   formatting,
   - silent - disables percentage output and error messages,
   - plain - sets percentage output and message formatting style to ASCII
   output without rewinding control characters.


In HPC and cloud computing we commonly use "plain". It prints the
percentage like this

0..10..20..

and doesn't use control characters.

HTH,
Markus


> Best
> Bernardo
> 
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
> 

> 
> 


[Attachment #7 (text/html)]

<div dir="auto"><div>Hi Bernardo,<br><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">Bernardo Santos via grass-user &lt;<a \
href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>&gt; schrieb \
am Fr., 5. Nov. 2021, 08:45:<br></div><blockquote class="gmail_quote" style="margin:0 \
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div \
style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div \
dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">when using rgrass7 and \
rmarkdown, is there a way of avoiding showing the percentage of processingo of each \
command within execGRASS?</div><div dir="ltr">It might get really polluted, mainly \
when I perform a loop or many processings.</div><div dir="ltr">See the figure \
below:</div><div dir="ltr"><img title="Imagem incorporada" alt="Imagem incorporada" \
src="cid:e71af37b-b72b-dd3b-9c9c-eba8d50a8b86@yahoo.com" \
style="max-width:504px;width:100%"><br><span></span><br>I tried adding &quot;message \
= FALSE, warning = FALSE&quot; to the chunks, but it does not \
work.</div></div></div></blockquote></div></div><div dir="auto"><br></div><div \
dir="auto">GRASS GIS itself offers a shell variable to set the message \
style:</div><div dir="auto"><br></div><div dir="auto"><a \
href="https://grass.osgeo.org/grass78/manuals/variables.html#list-of-selected-(grass-r \
elated)-shell-environment-variables">https://grass.osgeo.org/grass78/manuals/variables.html#list-of-selected-(grass-related)-shell-environment-variables</a></div><div \
dir="auto"><br></div><div dir="auto"><dt \
style="font-family:arial,sans-serif;background-color:rgb(255,255,255)">GRASS_MESSAGE_FORMAT</dt><dd \
style="font-family:arial,sans-serif;font-size:medium;background-color:rgb(255,255,255)">[various \
modules, wxGUI]<br>it may be set to either<ul><li><tt>standard</tt>  - sets \
percentage output and message formatting style to standard \
formatting,</li><li><tt>gui</tt>  - sets percentage output and message formatting \
style to GUI formatting,</li><li><tt>silent</tt>  - disables percentage output and \
error messages,</li><li><tt>plain</tt>  - sets percentage output and message \
formatting style to ASCII output without rewinding control \
characters.</li></ul></dd></div><div dir="auto"><br></div><div dir="auto">In HPC and \
cloud computing we commonly use &quot;plain&quot;. It prints the percentage like \
this</div><div dir="auto"><br></div><div dir="auto">0..10..20..</div><div \
dir="auto"><br></div><div dir="auto">and doesn&#39;t use control \
characters.</div><div dir="auto"><br></div><div dir="auto">HTH,</div><div \
dir="auto">Markus</div><div dir="auto"><br></div><div dir="auto"><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div \
style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px"><div \
dir="ltr"><br></div><div dir="ltr">Best</div><div \
dir="ltr">Bernardo<br><span></span><br></div></div></div>_______________________________________________<br>
 grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank" \
rel="noreferrer">grass-user@lists.osgeo.org</a><br> <a \
href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer \
noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
 </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><br></blockquote></div></div></div>


["1636098140987blob.jpg" (image/jpeg)]
["1636098140987blob.jpg" (image/jpeg)]

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic