<div dir="ltr">I see. That was one of the big problems then. I knew it used R-resources but wasn't sure the software itself was required. Must have overlooked it in the documentation and other user- topics as I was reading about the module.<div><br></div><div>Now I have R-3.5, but still get an error:</div><div><br></div><div><div>v.class.mlR --overwrite training_map=Training_Ben2@haarlooj_Ben_Test segments_file=C:\Users\haarlooj\Documents\CELOS\Stats_Training_Ben_test raster_segments_map=best_myregion1_at_haarlooj_Ben_Test_rank1@haarlooj_Ben_Test train_class_column=code output_class_column=vote output_prob_column=prob classifiers=svmRadial,rf,C5.0 folds=5 partitions=10 tunelength=10 weighting_modes=smv,qbwwv weighting_metric=accuracy classification_results=C:\Users\haarlooj\Documents\CELOS\v.class.mIRR_optional_output\Ben_test_Classifier-results accuracy_file=C:\Users\haarlooj\Documents\CELOS\v.class.mIRR_optional_output\Ben_test_Classifier-accuracy model_details=C:\Users\haarlooj\Documents\CELOS\v.class.mIRR_optional_output\Ben_test_Classifier-module-runs bw_plot_file=C:\Users\haarlooj\Documents\CELOS\v.class.mIRR_optional_output\Ben_test_Classifier-performance r_script_file=C:\Users\haarlooj\Documents\CELOS\v.class.mIRR_optional_output\Ben_test_R_script processes=3</div><div>Running R now. Following output is R output.</div><div>During startup - Warning messages:</div><div>1: Setting LC_CTYPE=en_US.cp1252 failed </div><div>2: Setting LC_COLLATE=en_US.cp1252 failed </div><div>3: Setting LC_TIME=en_US.cp1252 failed </div><div>4: Setting LC_MONETARY=en_US.cp1252 failed </div><div>Loading required package: caret</div><div>Loading required package: lattice</div><div>Loading required package: ggplot2</div><div>Loading required package: foreach</div><div>Loading required package: iterators</div><div>Loading required package: parallel</div><div>During startup - Warning messages:</div><div>1: Setting LC_CTYPE=en_US.cp1252 failed </div><div>2: Setting LC_COLLATE=en_US.cp1252 failed </div><div>3: Setting LC_TIME=en_US.cp1252 failed </div><div>4: Setting LC_MONETARY=en_US.cp1252 failed </div><div>During startup - Warning messages:</div><div>1: Setting LC_CTYPE=en_US.cp1252 failed </div><div>2: Setting LC_COLLATE=en_US.cp1252 failed </div><div>3: Setting LC_TIME=en_US.cp1252 failed </div><div>4: Setting LC_MONETARY=en_US.cp1252 failed </div><div>During startup - Warning messages:</div><div>1: Setting LC_CTYPE=en_US.cp1252 failed </div><div>2: Setting LC_COLLATE=en_US.cp1252 failed </div><div>3: Setting LC_TIME=en_US.cp1252 failed </div><div>4: Setting LC_MONETARY=en_US.cp1252 failed </div><div>Warning message:</div><div>In nominalTrainWorkflow(x = x, y = y, wts = weights, info = trainInfo,  :</div><div>  There were missing values in resampled performance measures.</div><div>Error in eval(predvars, data, env) : object 'id' not found</div><div>Calls: data.frame ... predict.train -> model.frame -> model.frame.default -> eval -> eval</div><div>Execution halted</div><div>ERROR: There was an error in the execution of the R script.</div><div>Please check the R output.</div><div>Error in atexit._run_exitfuncs:</div><div>Traceback (most recent call last):</div><div>  File "C:\Program Files\GRASS GIS</div><div>7.4.0\Python27\lib\atexit.py", line 24, in _run_exitfuncs</div><div>    func(*targs, **kargs)</div><div>  File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri</div><div>pts/<a href="http://v.class.mlR.py">v.class.mlR.py</a>", line 236, in cleanup</div><div>    gscript.try_remove(model_output_csv)</div><div>NameError: global name 'model_output_csv' is not defined</div><div>Error in sys.exitfunc:</div><div>Traceback (most recent call last):</div><div>  File "C:\Program Files\GRASS GIS</div><div>7.4.0\Python27\lib\atexit.py", line 24, in _run_exitfuncs</div><div>    func(*targs, **kargs)</div><div>  File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri</div><div>pts/<a href="http://v.class.mlR.py">v.class.mlR.py</a>", line 236, in cleanup</div><div>    gscript.try_remove(model_output_csv)</div><div>NameError: global name 'model_output_csv' is not defined</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 6, 2018 at 4:05 AM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/06/18 15:42, Jamille Haarloo wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
It did not work out from another station, but I tried today from the same computer.<br>
I first reinstalled the module.<br>
This is the command output:<br>
<br>
Running R now. Following output is R output.<br>
Traceback (most recent call last):<br>
   File "C:\Users\haarlooj\AppData\Roa<wbr>ming\GRASS7\addons/scri<br></span>
pts/<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">v.class.mlR.py</a> <<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">http://v.class.mlR.py</a>>", line 632, in <module><span class=""><br>
     main()<br>
   File "C:\Users\haarlooj\AppData\Roa<wbr>ming\GRASS7\addons/scri<br></span>
pts/<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">v.class.mlR.py</a> <<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">http://v.class.mlR.py</a>>", line 569, in main<span class=""><br>
     subprocess.check_call(['Rscrip<wbr>t', r_commands],<br>
stderr=subprocess.STDOUT, )<br>
   File "C:\Program Files\GRASS GIS<br>
7.4.0\Python27\lib\subprocess.<wbr>py", line 537, in check_call<br>
     retcode = call(*popenargs, **kwargs)<br>
   File "C:\Program Files\GRASS GIS<br>
7.4.0\Python27\lib\subprocess.<wbr>py", line 524, in call<br>
     return Popen(*popenargs, **kwargs).wait()<br>
   File "C:\Program Files\GRASS GIS<br>
7.4.0\Python27\lib\subprocess.<wbr>py", line 711, in __init__<br>
     errread, errwrite)<br>
   File "C:\Program Files\GRASS GIS<br>
7.4.0\Python27\lib\subprocess.<wbr>py", line 948, in<br>
_execute_child<br>
     startupinfo)<br>
WindowsError: [Error 2] The system cannot find the file<br>
specified<br>
</span></blockquote>
<br>
I still have the feeling that the system cannot find Rscript.<br>
<br>
Can you open the GRASS terminal window and type 'Rscript' to see if it can be found ?<br>
<br>
Just to be sure: you do have R installed ?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Error in atexit._run_exitfuncs:<br>
Traceback (most recent call last):<br>
   File "C:\Program Files\GRASS GIS<br>
7.4.0\Python27\lib\atexit.py", line 24, in _run_exitfuncs<br>
     func(*targs, **kargs)<br>
   File "C:\Users\haarlooj\AppData\Roa<wbr>ming\GRASS7\addons/scri<br></span>
pts/<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">v.class.mlR.py</a> <<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">http://v.class.mlR.py</a>>", line 236, in cleanup<span class=""><br>
     gscript.try_remove(model_outpu<wbr>t_csv)<br>
NameError: global name 'model_output_csv' is not defined<br>
Error in sys.exitfunc:<br>
Traceback (most recent call last):<br>
   File "C:\Program Files\GRASS GIS<br>
7.4.0\Python27\lib\atexit.py", line 24, in _run_exitfuncs<br>
     func(*targs, **kargs)<br>
   File "C:\Users\haarlooj\AppData\Roa<wbr>ming\GRASS7\addons/scri<br></span>
pts/<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">v.class.mlR.py</a> <<a href="http://v.class.mlR.py" rel="noreferrer" target="_blank">http://v.class.mlR.py</a>>", line 236, in cleanup<span class=""><br>
     gscript.try_remove(model_outpu<wbr>t_csv)<br>
NameError: global name 'model_output_csv' is not defined<br>
</span></blockquote>
<br>
This NameError is a consequence of the earlier error, but anyhow I just corrected it in r72773.<span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
</font></span></blockquote></div><br></div>