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