<div dir="ltr"><div>Thank you Helmut,</div>R is not found:<br>'R' is not recognized as an internal or external command, operable program or batch file.<div>Currently looking for information online about what to do. <br><div><br></div><div>I also installed the winGRASS 8.3 via/in OSGeo4W v2, but now there is also a problem with g.extension to add v.class.mlR. I tried it on my laptop and work computer. Same problem.</div><div>--------<br><div><br></div><div>Exception in thread<br>Thread-14<br>:<br>Traceback (most recent call last):<br>  File "C:\OSGeo4W\apps\Python39\lib\threading.py", line<br>954, in _bootstrap_inner<br><br>self.run()<br>  File "C:\OSGeo4W\apps\grass\grass83\gui\wxpython\core\gthr<br>ead.py", line 154, in __run<br><br>self.__run_backup()<br>  File "C:\OSGeo4W\apps\grass\grass83\gui\wxpython\core\gthr<br>ead.py", line 117, in run<br><br>ret = vars()["callable"](*args, **kwds)<br>  File "C:\OSGeo4W\apps\grass\grass83\gui\wxpython\modules\e<br>xtensions.py", line 369, in Load<br><br>raise GException(_("Unable to load extensions. %s") % msg)<br>core.gcmd<br>.<br>GException<br>:<br>Unable to load extensions. Traceback (most recent call<br>last):<br>File "C:\OSGeo4W\apps\grass\grass83\scripts\<a href="http://g.extension.py" target="_blank">g.extension.py</a>",<br>line 2855, in <module><br>sys.exit(main())<br>File "C:\OSGeo4W\apps\grass\grass83\scripts\<a href="http://g.extension.py" target="_blank">g.extension.py</a>",<br>line 2803, in main<br>xmlurl = resolve_xmlurl_prefix(original_url, source=source)<br>File "C:\OSGeo4W\apps\grass\grass83\scripts\<a href="http://g.extension.py" target="_blank">g.extension.py</a>",<br>line 2492, in resolve_xmlurl_prefix<br>version_branch = get_version_branch(VERSION[0])<br>File "C:\OSGeo4W\apps\grass\grass83\scripts\<a href="http://g.extension.py" target="_blank">g.extension.py</a>",<br>line 507, in get_version_branch<br>branch = gs.Popen(<br>File "C:\OSGeo4W\apps\grass\grass83\etc\python\grass\script\<br>core.py", line 55, in __init__<br>raise OSError(_("Cannot find the executable<br>{0}").format(args[0]))<br>OSError: Cannot find the executable git<br><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 19, 2023 at 3:02 PM Helmut Kudrnovsky <<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>I am using standalone winGRASS, but installed it with OSGeo4W because I also use QGIS.<br>
<br>
I don't understand this. How do you install standalone winGRASS with OSGeo4W? But that's another question.<br>
<br>
Jürgen re-packaged now winGRASS 8.3.0 in OSGeo4W version 2 including the Rbatch-files.<br>
<br>
have a look at <a href="https://github.com/ggrothendieck/batchfiles/blob/master/R.bat#L520" rel="noreferrer" target="_blank">https://github.com/ggrothendieck/batchfiles/blob/master/R.bat#L520</a> and following code lines.<br>
<br>
the relevant one is <a href="https://github.com/ggrothendieck/batchfiles/blob/master/R.bat#L532" rel="noreferrer" target="_blank">https://github.com/ggrothendieck/batchfiles/blob/master/R.bat#L532</a><br>
<br>
"echo   path - Add R_TOOLS, R_MIKTEX ^& R_PATH to path for this cmd line session (0)"<br>
<br>
just tried here in OSGeo4W version 2 with re-packaged winGRASS 8.3.0:<br>
<br>
* starting a GRASS session<br>
* typing into the windows console: R path => this adds temporarily the path to R to %PATH%<br>
* typing into the windows console: RScript -e "sessionInfo()" => outputs all necessary infos if R is correctly found (as Micha suggested)<br>
<br>
when temporarily the path to R is added to %PATH% within the winGRASS session, try v.class.mlR.<br>
<br>
<br>
Kind regards<br>
Helmut<br>
</blockquote></div>