[GRASS-user] r.futures not working

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Best regards

Tom

On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can’t find the Rscript binary. If R is installed, I would recommend reinstalling GRASS, during installation it tries to automatically look for it, so there is a chance it will work then. I would recommend subscribing to grass-user mailing list and ask more questions there.

Anna

Best regards

Tom


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

Hi Tom,

On Thu, Dec 10, 2020 at 4:24 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

thanks for your answer.

I reinstalled it already multiple times. I get the same error message every time though. I will try it on a mac tomorrow, but that is the last idea I have. Has there ever been a problem like this using r.futures? It’s such a shame because I really want to use it for my Master’s Thesis as it is capable of all the things that I need to do for it, but I cannot get it to work.

I am not sure why reinstalling doesn’t work and I am myself on Linux so can’t test now. You can try to paste a line like this:

set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin

in the GRASS terminal (the black one), you need to change the path to R based on your R installation. Then try to run Rscript in the terminal, just to see if the binary can now be found. If yes, try to run r.futures.potential. This temporarily changes the PATH variable so that your system can find R, once you close GRASS, you need to repeat this next you need to run it. Let us know if at least this works.

Anna

Best regards

Tom

Am Mi., 9. Dez. 2020 um 15:01 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can’t find the Rscript binary. If R is installed, I would recommend reinstalling GRASS, during installation it tries to automatically look for it, so there is a chance it will work then. I would recommend subscribing to grass-user mailing list and ask more questions there.

Anna

Best regards

Tom


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

Tom Hackbarth wrote

Dear grass users,

I am trying to work my way through the r.futures workshop (
https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel),
but as soon as I get to the point of using the first r.futures module -
r.futures-potential I come to a dead end.

This is the message I get:

___________________________

r.futures.potential input=sampling@practice1 output=potential.csv
columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
developed_column=urban_change_clip subregions_column=counties
Computing model...
Traceback (most recent call last):
  File "C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py", line 221, in
<module>
    sys.exit(main())
  File "C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py", line 192, in main
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
  File "D:\Programme\apps\Python37\lib\subprocess.py", line
756, in __init__
    restore_signals, start_new_session)
  File "D:\Programme\apps\Python37\lib\subprocess.py", line
1155, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)

_____________________________

There seems to be a problem with the Python code. I also tried to work it
out on linux manjaro, but I get more or less the same error message in the
End.

Is there anyone who can help me on this? I came not even close to
repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Best regards

Tom

_______________________________________________
grass-user mailing list

grass-user@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-user

which winGRASS version are you using? standalone winGRASS? OSGeo4W winGRASS?
QGIS bundled winGRASS?

D:\Programme\apps\Python37\

which python are you using? is it the phyton bundled with winGRASS?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

Hi Tom,

please keep the conversation on the mailing list.

The problem in the GUI is unrelated, you can always type in the attribute column if it doesn’t show up.

With running Rscript I mean typing ‘Rscript’ into the (black) terminal and pressing enter. If the system can find it, it will try to run it and you would get a message with Rscript parameters. When you tried to run the PATH command, have you adjusted it with the path to your R installation?

On Fri, Dec 11, 2020 at 6:02 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

I used the set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin code you mentioned. It is not working. I still do not understand how to run Rscript in the terminal to try out whether it has worked or not.

I just wonder whether it is not the r.futures model that is not working. When I try to use it, I cannot select any layers for developed_column or subregions_column, as you can see in the picture attached. This is the first time I have encountered this problem within grass.

Can you maybe try if it is working on your computer? I tried it now on windows, linux manjaro and mac and I get the same error.

Thank you so much for your support.

Best regards

Tom
image.png

Am Fr., 11. Dez. 2020 um 10:21 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

Hi Anna,

can you tell me how I can run Rscript in the terminal?

Best regards

Tom

Am Do., 10. Dez. 2020 um 17:10 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

On Thu, Dec 10, 2020 at 4:24 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

thanks for your answer.

I reinstalled it already multiple times. I get the same error message every time though. I will try it on a mac tomorrow, but that is the last idea I have. Has there ever been a problem like this using r.futures? It’s such a shame because I really want to use it for my Master’s Thesis as it is capable of all the things that I need to do for it, but I cannot get it to work.

I am not sure why reinstalling doesn’t work and I am myself on Linux so can’t test now. You can try to paste a line like this:

set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin

in the GRASS terminal (the black one), you need to change the path to R based on your R installation. Then try to run Rscript in the terminal, just to see if the binary can now be found. If yes, try to run r.futures.potential. This temporarily changes the PATH variable so that your system can find R, once you close GRASS, you need to repeat this next you need to run it. Let us know if at least this works.

Anna

Best regards

Tom

Am Mi., 9. Dez. 2020 um 15:01 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can’t find the Rscript binary. If R is installed, I would recommend reinstalling GRASS, during installation it tries to automatically look for it, so there is a chance it will work then. I would recommend subscribing to grass-user mailing list and ask more questions there.

Anna

Best regards

Tom


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

Dear Anna,

yes I set the path right and this is the answer I get when running Rscript:

Rscript
Usage: /path/to/Rscript [–options] [-e expr [-e expr2 …] | file] [args]

–options accepted are
–help Print usage and exit
–version Print version and exit
–verbose Print information on progress
–default-packages=list
Where ‘list’ is a comma-separated set
of package names, or ‘NULL’
or options to R, in addition to --no-echo --no-restore, such as
–save Do save workspace at the end of the session
–no-environ Don’t read the site and user environment files
–no-site-file Don’t read the site-wide Rprofile
–no-init-file Don’t read the user R profile
–restore Do restore previously saved objects at startup
–vanilla Combine --no-save, --no-restore, --no-site-file
–no-init-file and --no-environ

‘file’ may contain spaces but not shell metacharacters
Expressions (one or more ‘-e ’) may be used instead of ‘file’
See also ?Rscript from within R

So I guess it is working properly?

Am Fr., 11. Dez. 2020 um 15:35 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

please keep the conversation on the mailing list.

The problem in the GUI is unrelated, you can always type in the attribute column if it doesn’t show up.

With running Rscript I mean typing ‘Rscript’ into the (black) terminal and pressing enter. If the system can find it, it will try to run it and you would get a message with Rscript parameters. When you tried to run the PATH command, have you adjusted it with the path to your R installation?

On Fri, Dec 11, 2020 at 6:02 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

I used the set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin code you mentioned. It is not working. I still do not understand how to run Rscript in the terminal to try out whether it has worked or not.

I just wonder whether it is not the r.futures model that is not working. When I try to use it, I cannot select any layers for developed_column or subregions_column, as you can see in the picture attached. This is the first time I have encountered this problem within grass.

Can you maybe try if it is working on your computer? I tried it now on windows, linux manjaro and mac and I get the same error.

Thank you so much for your support.

Best regards

Tom
image.png

Am Fr., 11. Dez. 2020 um 10:21 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

Hi Anna,

can you tell me how I can run Rscript in the terminal?

Best regards

Tom

Am Do., 10. Dez. 2020 um 17:10 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

On Thu, Dec 10, 2020 at 4:24 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

thanks for your answer.

I reinstalled it already multiple times. I get the same error message every time though. I will try it on a mac tomorrow, but that is the last idea I have. Has there ever been a problem like this using r.futures? It’s such a shame because I really want to use it for my Master’s Thesis as it is capable of all the things that I need to do for it, but I cannot get it to work.

I am not sure why reinstalling doesn’t work and I am myself on Linux so can’t test now. You can try to paste a line like this:

set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin

in the GRASS terminal (the black one), you need to change the path to R based on your R installation. Then try to run Rscript in the terminal, just to see if the binary can now be found. If yes, try to run r.futures.potential. This temporarily changes the PATH variable so that your system can find R, once you close GRASS, you need to repeat this next you need to run it. Let us know if at least this works.

Anna

Best regards

Tom

Am Mi., 9. Dez. 2020 um 15:01 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can’t find the Rscript binary. If R is installed, I would recommend reinstalling GRASS, during installation it tries to automatically look for it, so there is a chance it will work then. I would recommend subscribing to grass-user mailing list and ask more questions there.

Anna

Best regards

Tom


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

On Fri, Dec 11, 2020 at 10:01 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear Anna,

yes I set the path right and this is the answer I get when running Rscript:

Rscript
Usage: /path/to/Rscript [–options] [-e expr [-e expr2 …] | file] [args]

–options accepted are
–help Print usage and exit
–version Print version and exit
–verbose Print information on progress
–default-packages=list
Where ‘list’ is a comma-separated set
of package names, or ‘NULL’
or options to R, in addition to --no-echo --no-restore, such as
–save Do save workspace at the end of the session
–no-environ Don’t read the site and user environment files
–no-site-file Don’t read the site-wide Rprofile
–no-init-file Don’t read the user R profile
–restore Do restore previously saved objects at startup
–vanilla Combine --no-save, --no-restore, --no-site-file
–no-init-file and --no-environ

‘file’ may contain spaces but not shell metacharacters
Expressions (one or more ‘-e ’) may be used instead of ‘file’
See also ?Rscript from within R

So I guess it is working properly?

Yes, it looks good, is r.futures.potential still not working? Is the error the same?

Am Fr., 11. Dez. 2020 um 15:35 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

please keep the conversation on the mailing list.

The problem in the GUI is unrelated, you can always type in the attribute column if it doesn’t show up.

With running Rscript I mean typing ‘Rscript’ into the (black) terminal and pressing enter. If the system can find it, it will try to run it and you would get a message with Rscript parameters. When you tried to run the PATH command, have you adjusted it with the path to your R installation?

On Fri, Dec 11, 2020 at 6:02 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

I used the set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin code you mentioned. It is not working. I still do not understand how to run Rscript in the terminal to try out whether it has worked or not.

I just wonder whether it is not the r.futures model that is not working. When I try to use it, I cannot select any layers for developed_column or subregions_column, as you can see in the picture attached. This is the first time I have encountered this problem within grass.

Can you maybe try if it is working on your computer? I tried it now on windows, linux manjaro and mac and I get the same error.

Thank you so much for your support.

Best regards

Tom
image.png

Am Fr., 11. Dez. 2020 um 10:21 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

Hi Anna,

can you tell me how I can run Rscript in the terminal?

Best regards

Tom

Am Do., 10. Dez. 2020 um 17:10 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

On Thu, Dec 10, 2020 at 4:24 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

thanks for your answer.

I reinstalled it already multiple times. I get the same error message every time though. I will try it on a mac tomorrow, but that is the last idea I have. Has there ever been a problem like this using r.futures? It’s such a shame because I really want to use it for my Master’s Thesis as it is capable of all the things that I need to do for it, but I cannot get it to work.

I am not sure why reinstalling doesn’t work and I am myself on Linux so can’t test now. You can try to paste a line like this:

set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin

in the GRASS terminal (the black one), you need to change the path to R based on your R installation. Then try to run Rscript in the terminal, just to see if the binary can now be found. If yes, try to run r.futures.potential. This temporarily changes the PATH variable so that your system can find R, once you close GRASS, you need to repeat this next you need to run it. Let us know if at least this works.

Anna

Best regards

Tom

Am Mi., 9. Dez. 2020 um 15:01 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can’t find the Rscript binary. If R is installed, I would recommend reinstalling GRASS, during installation it tries to automatically look for it, so there is a chance it will work then. I would recommend subscribing to grass-user mailing list and ask more questions there.

Anna

Best regards

Tom


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

[keep always the mailing list in the loop that other community members are able to help too respectively benefit from the thread]

regarding OSGeo4W-winGRASS, unfortunately there was a change in the rbatch package recently which breaks adding R to %PATH%

*start OSGeo4W in advanced mode, type rbatch in the search window on the top left
* open the tree of "Command_Utilities" and "Libs" and choose version 149-4 instead of 149-5
* finish installation
* open OSGeo4W shell and type R
* then R should start in OSGeo4W shell

regarding Mac, others have to answer, no Mac available here.

kind regards
Helmut

Gesendet: Freitag, 11. Dezember 2020 um 10:19 Uhr
Von: "Tom Hackbarth" <txhackbarth@gmail.com>
An: "Helmut Kudrnovsky" <hellik@web.de>
Betreff: Re: [GRASS-user] r.futures not working

Hi Helmut,

I tried it now on mac as well. I get to the same point.

____________________

Computing model...
Traceback (most recent call last):
File "/Users/XXXX/Library/GRASS/7.8/Modules/scripts/r
.futures.potential", line 221, in <module>
sys.exit(main())
File "/Users/XXXX/Library/GRASS/7.8/Modules/scripts/r
.futures.potential", line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File "/Applications/GRASS-7.8.app/Contents/Resources/lib/p
ython3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn,
close_fds,
File "/Applications/GRASS-7.8.app/Contents/Resources/lib/p
ython3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg,
err_filename)
FileNotFoundError: [Errno 2] No such file or directory:
'Rscript'

_______________________

I got the latest versions of R, python and Grass installed. I get the same error message on Windows, mac and Manjaro.

Do you know where the problem is?

Best regards

Tom

Am Fr., 11. Dez. 2020 um 09:36 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com[mailto:txhackbarth@gmail.com]>:
Hi Helmut,

I've been using the OSGeo4W installer for everything, as it was suggested in the r.futures workshop.

I'm using Python 3.7, but I tried already different versions (2.7, 3.9) in the process of trying to fix the problem.
I do not know whether it is bundled with grass though. How can I figure that out?

Thanks for your help!

Warm regards

Tom

Am Do., 10. Dez. 2020 um 19:31 Uhr schrieb Helmut Kudrnovsky <hellik@web.de[mailto:hellik@web.de]>:Tom Hackbarth wrote

Dear grass users,

I am trying to work my way through the r.futures workshop (
https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel[https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES\#Potential\_submodel\]\),
but as soon as I get to the point of using the first r.futures module -
r.futures-potential I come to a dead end.

This is the message I get:

___________________________

r.futures.potential input=sampling@practice1 output=potential.csv
columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
developed_column=urban_change_clip subregions_column=counties
Computing model...
Traceback (most recent call last):
File "C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py[http://r.futures.potential.py]", line 221, in
<module>
sys.exit(main())
File "C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py[http://r.futures.potential.py]", line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File "D:\Programme\apps\Python37\lib\subprocess.py", line
756, in __init__
restore_signals, start_new_session)
File "D:\Programme\apps\Python37\lib\subprocess.py", line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)

_____________________________

There seems to be a problem with the Python code. I also tried to work it
out on linux manjaro, but I get more or less the same error message in the
End.

Is there anyone who can help me on this? I came not even close to
repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Best regards

Tom

_______________________________________________
grass-user mailing list

grass-user@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-user

which winGRASS version are you using? standalone winGRASS? OSGeo4W winGRASS?
QGIS bundled winGRASS?

D:\Programme\apps\Python37\

which python are you using? is it the phyton bundled with winGRASS?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org[mailto:grass-user@lists.osgeo.org]
https://lists.osgeo.org/mailman/listinfo/grass-user

regarding OSGeo4W-winGRASS, unfortunately there was a change in the rbatch

package recently which >breaks adding R to %PATH%

*start OSGeo4W in advanced mode, type rbatch in the search window on the

top left

* open the tree of "Command_Utilities" and "Libs" and choose version 149-4

instead of 149-5

* finish installation
* open OSGeo4W shell and type R
* then R should start in OSGeo4W shell

switched back to rbatch 149-4 here in my OSGeo4W environment.

installed all needed R packages mentioned in the workshop [1]

**R (≥ 3.5.0) - needed for r.futures.potential with packages:
**
** MuMIn, lme4, optparse, rgrass7

local R version: 4.03

trying the workshop example with r.futures.potential (where R is needed):

r.futures.potential -d input=sampling@user1
output=D:\wd\rfutures\futures_Asheville_files\potential.csv
columns=devpressure_0_5_92,slope,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km,dist_interchanges_km,travel_time
developed_column=urban_change_clip subregions_column=counties
min_variables=4

Running automatic model selection ... <=

addon invoked RScript for model selection correctly; waiting for calculation
be finished:

WARNING: Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_AT.cp1252 failed
2: Setting LC_COLLATE=de_AT.cp1252 failed
3: Setting LC_TIME=de_AT.cp1252 failed
4: Setting LC_MONETARY=de_AT.cp1252 failed
Fixed term is "(Intercept)"
Warnmeldung:
In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
Model failed to converge with max|grad| = 0.00403567 (tol = 0.002, component
1)
Best model summary:
-------------------------
Generalized linear mixed model fit by maximum likelihood (Laplace
Approximation) [glmerMod]
Family: binomial ( logit )
Formula: urban_change_clip ~ devpressure_0_5_92 + dist_interchanges_km +
dist_to_protected_km + dist_to_water_km + forest_1992_smooth_perc +
road_dens_perc + slope + travel_time + (1 | counties)
Data: input_data

AIC BIC logLik deviance df.resid
2641.7 2708.6 -1310.8 2621.7 5916

Scaled residuals:
Min 1Q Median 3Q Max
-5.5600 -0.2166 -0.0876 -0.0466 21.1719

Random effects:
Groups Name Variance Std.Dev.
counties (Intercept) 0.04751 0.218
Number of obs: 5926, groups: counties, 5

Fixed effects:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.952166 0.283639 3.357 0.000788 ***
devpressure_0_5_92 0.030397 0.004947 6.144 8.05e-10 ***
dist_interchanges_km -0.054705 0.013647 -4.009 6.11e-05 ***
dist_to_protected_km -0.205176 0.044363 -4.625 3.75e-06 ***
dist_to_water_km -0.157337 0.025512 -6.167 6.95e-10 ***
forest_1992_smooth_perc -0.044996 0.002423 -18.572 < 2e-16 ***
road_dens_perc 0.080876 0.007976 10.140 < 2e-16 ***
slope 0.024958 0.009225 2.705 0.006822 **
travel_time -4.057411 0.439160 -9.239 < 2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation of Fixed Effects:
(Intr) d_0_5_ dst_n_ dst_t_p_ dst_t_w_ f_1992 rd_dn_ slope
dvpr_0_5_92 -0.259
dst_ntrchn_ -0.360 0.284
dst_t_prtc_ -0.303 0.099 0.156
dst_t_wtr_k -0.203 0.119 -0.101 -0.100
frst_1992__ -0.256 0.158 -0.077 0.045 0.085
rod_dns_prc -0.378 -0.355 -0.008 -0.094 -0.063 0.057
slope -0.151 0.058 0.061 -0.006 -0.093 -0.520 -0.009
travel_time -0.558 -0.116 0.029 0.036 0.014 0.101 0.167 -0.013
(Fri Dec 11 23:14:30 2020) Befehl ausgeführt (9 Min 3 Sek)

findings:

- there is some locale issue: Setting LC_CTYPE=de_AT.cp1252 failed - it's a
german windows 10 box here
- In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, : <=
not sure about this one here
- Model failed to converge with max|grad| = 0.00403567 (tol = 0.002,
component 1) <= maybe related to input data (not checked if these make
sense)
- Best model summary:
-------------------------
Generalized linear mixed model fit by maximum likelihood (Laplace
Approximation) [glmerMod]

though it seems a best model could be found

to sum up, r.futures.potential invoking some R scripts works here in OSGeo4W
using rbatch 149-4

[1]
https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Workshop_data

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

local R version: 4.03

and tested in

System Info
GRASS Version: 7.8.4
Code revision: d8fbd49af
Build date: 2020-10-05
Build platform: x86_64-w64-mingw32
GDAL: 3.0.4
PROJ: 6.3.2
GEOS: 3.8.1
SQLite: 3.29.0
Python: 3.7.0
wxPython: 4.0.7
Platform: Windows-10-10.0.19041-SP0 (OSGeo4W)

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

It is still not working and the error message is still the same.

Am Fr., 11. Dez. 2020 um 20:42 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

On Fri, Dec 11, 2020 at 10:01 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear Anna,

yes I set the path right and this is the answer I get when running Rscript:

Rscript
Usage: /path/to/Rscript [–options] [-e expr [-e expr2 …] | file] [args]

–options accepted are
–help Print usage and exit
–version Print version and exit
–verbose Print information on progress
–default-packages=list
Where ‘list’ is a comma-separated set
of package names, or ‘NULL’
or options to R, in addition to --no-echo --no-restore, such as
–save Do save workspace at the end of the session
–no-environ Don’t read the site and user environment files
–no-site-file Don’t read the site-wide Rprofile
–no-init-file Don’t read the user R profile
–restore Do restore previously saved objects at startup
–vanilla Combine --no-save, --no-restore, --no-site-file
–no-init-file and --no-environ

‘file’ may contain spaces but not shell metacharacters
Expressions (one or more ‘-e ’) may be used instead of ‘file’
See also ?Rscript from within R

So I guess it is working properly?

Yes, it looks good, is r.futures.potential still not working? Is the error the same?

Am Fr., 11. Dez. 2020 um 15:35 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

please keep the conversation on the mailing list.

The problem in the GUI is unrelated, you can always type in the attribute column if it doesn’t show up.

With running Rscript I mean typing ‘Rscript’ into the (black) terminal and pressing enter. If the system can find it, it will try to run it and you would get a message with Rscript parameters. When you tried to run the PATH command, have you adjusted it with the path to your R installation?

On Fri, Dec 11, 2020 at 6:02 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

I used the set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin code you mentioned. It is not working. I still do not understand how to run Rscript in the terminal to try out whether it has worked or not.

I just wonder whether it is not the r.futures model that is not working. When I try to use it, I cannot select any layers for developed_column or subregions_column, as you can see in the picture attached. This is the first time I have encountered this problem within grass.

Can you maybe try if it is working on your computer? I tried it now on windows, linux manjaro and mac and I get the same error.

Thank you so much for your support.

Best regards

Tom
image.png

Am Fr., 11. Dez. 2020 um 10:21 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

Hi Anna,

can you tell me how I can run Rscript in the terminal?

Best regards

Tom

Am Do., 10. Dez. 2020 um 17:10 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

Hi Tom,

On Thu, Dec 10, 2020 at 4:24 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Hi Anna,

thanks for your answer.

I reinstalled it already multiple times. I get the same error message every time though. I will try it on a mac tomorrow, but that is the last idea I have. Has there ever been a problem like this using r.futures? It’s such a shame because I really want to use it for my Master’s Thesis as it is capable of all the things that I need to do for it, but I cannot get it to work.

I am not sure why reinstalling doesn’t work and I am myself on Linux so can’t test now. You can try to paste a line like this:

set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin

in the GRASS terminal (the black one), you need to change the path to R based on your R installation. Then try to run Rscript in the terminal, just to see if the binary can now be found. If yes, try to run r.futures.potential. This temporarily changes the PATH variable so that your system can find R, once you close GRASS, you need to repeat this next you need to run it. Let us know if at least this works.

Anna

Best regards

Tom

Am Mi., 9. Dez. 2020 um 15:01 Uhr schrieb Anna Petrášová <kratochanna@gmail.com>:

On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth <txhackbarth@gmail.com> wrote:

Dear grass users,

I am trying to work my way through the r.futures workshop (https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel), but as soon as I get to the point of using the first r.futures module - r.futures-potential I come to a dead end.

This is the message I get:


r.futures.potential input=sampling@practice1 output=potential.csv columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km developed_column=urban_change_clip subregions_column=counties
Computing model…
Traceback (most recent call last):
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 221, in
sys.exit(main())
File “C:\Users\XXXX\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py”, line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
756, in init
restore_signals, start_new_session)
File “D:\Programme\apps\Python37\lib\subprocess.py”, line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


There seems to be a problem with the Python code. I also tried to work it out on linux manjaro, but I get more or less the same error message in the End.

Is there anyone who can help me on this? I came not even close to repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can’t find the Rscript binary. If R is installed, I would recommend reinstalling GRASS, during installation it tries to automatically look for it, so there is a chance it will work then. I would recommend subscribing to grass-user mailing list and ask more questions there.

Anna

Best regards

Tom


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

It is still not working and the error message is still the same.

install.packages(c("MuMIn", "lme4", "optparse", "rgrass7")) done?

I got a similar error message when MuMIn wasn't installed.

have you tried in OSGeo4W to switch to an earier rbatch version. then R
should be added automatically to %PATH% and r.future.develop works as
expected, see my earlier mail.

if switched, type R and RScript into the OSGeo4W shell and report here.

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

Hi Helmut,

I have switched to the earlier rbatch version. But I still get the same error message running r.futures.

This is what happens when I type R or Rscript in the Shell:

run o-help for a list of available commands
C:>R
Der Befehl “R” ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:>Rscript
Der Befehl “Rscript” ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(that means it’s been typed wrong or couldn’t be found).

In the Grass terminal running R or Rscript only works if I have set the Path beforehand.

Best regards

Tom

Am Sa., 12. Dez. 2020 um 12:53 Uhr schrieb Helmut Kudrnovsky <hellik@web.de>:

It is still not working and the error message is still the same.

install.packages(c(“MuMIn”, “lme4”, “optparse”, “rgrass7”)) done?

I got a similar error message when MuMIn wasn’t installed.

have you tried in OSGeo4W to switch to an earier rbatch version. then R
should be added automatically to %PATH% and r.future.develop works as
expected, see my earlier mail.

if switched, type R and RScript into the OSGeo4W shell and report here.


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


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

I have downloaded, installed and deleted the program now for so many times, that there might be some residual data from before somewhere on my computer. Could this be the problem?

Is there a way to properly uninstall all the programme data? I haven’t been able to find such a way as OSGeo4W or Grass won’t show up in my programme list.

Am Sa., 12. Dez. 2020 um 12:53 Uhr schrieb Helmut Kudrnovsky <hellik@web.de>:

It is still not working and the error message is still the same.

install.packages(c(“MuMIn”, “lme4”, “optparse”, “rgrass7”)) done?

I got a similar error message when MuMIn wasn’t installed.

have you tried in OSGeo4W to switch to an earier rbatch version. then R
should be added automatically to %PATH% and r.future.develop works as
expected, see my earlier mail.

if switched, type R and RScript into the OSGeo4W shell and report here.


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


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

run o-help for a list of available commands
C:\>R
Der Befehl "R" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\>Rscript
Der Befehl "Rscript" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

(that means it's been typed wrong or couldn't be found).

no, the GRASS-R-bridge isn't installed.

be aware that if you install the previous rbatch version and then in a next
run of OSGeo4W install of e.g. winGRASS 7.9.daily., then the not working
rbatch version is installed again. it's a drawback of the minimalistic
OSGeo4W package system.

install the previous working rbatch version, then check:

in

- C:\OSGeo4W64\etc\ini\rbatchfiles.bat

and

- C:\OSGeo4W64\apps\rbatchfiles with 18 files inside are there.

the important file is rbatchfiles.bat in the ini-subfolder.

if it's there, then it should work like here within and outside a winGRASS
session in the OSGeo4W shell.

here:

-------------------------------------------------------------------------------

OSGeo4W shell outside a GRASS session:

run o-help for a list of available commands
C:\>R

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden
können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

and

C:\>RScript
Usage: /path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]

--options accepted are
  --help Print usage and exit
  --version Print version and exit
  --verbose Print information on progress
  --default-packages=list
                      Where 'list' is a comma-separated set
                        of package names, or 'NULL'
or options to R, in addition to --no-echo --no-restore, such as
  --save Do save workspace at the end of the session
  --no-environ Don't read the site and user environment files
  --no-site-file Don't read the site-wide Rprofile
  --no-init-file Don't read the user R profile
  --restore Do restore previously saved objects at startup
  --vanilla Combine --no-save, --no-restore, --no-site-file
                        --no-init-file and --no-environ

'file' may contain spaces but not shell metacharacters
Expressions (one or more '-e <expr>') may be used *instead* of 'file'
See also ?Rscript from within R

-------------------------------------------------------------------------------
and within a winGRASS session:

Starting GRASS GIS...
WARNUNG: Sperren gleichzeitiger Zugriffe auf ein Mapset ist unter Windows
         nicht möglich.
Cleaning up temporary files...

          __________ ___ __________ _______________
         / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
        / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
       / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
       \____/_/ |_/_/ |_/____/____/ \____/___//____/

Welcome to GRASS GIS 7.8.4
GRASS GIS homepage: https://grass.osgeo.org
This version running through: Command Prompt
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit

Launching <wxpython> GUI in the background, please wait...
Microsoft Windows [Version 10.0.19042.685]
(c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.

C:\>R

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' f├╝r Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' f├╝r mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden
k├Ânnen.

Tippen Sie 'demo()' f├╝r einige Demos, 'help()' f├╝r on-line Hilfe, oder
'help.start()' f├╝r eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_AT.cp1252 failed
2: Setting LC_COLLATE=de_AT.cp1252 failed
3: Setting LC_TIME=de_AT.cp1252 failed
4: Setting LC_MONETARY=de_AT.cp1252 failed

q()

Workspace sichern? [y/n/c]: n

C:\>RScript
Usage: /path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]

--options accepted are
  --help Print usage and exit
  --version Print version and exit
  --verbose Print information on progress
  --default-packages=list
                      Where 'list' is a comma-separated set
                        of package names, or 'NULL'
or options to R, in addition to --no-echo --no-restore, such as
  --save Do save workspace at the end of the session
  --no-environ Don't read the site and user environment files
  --no-site-file Don't read the site-wide Rprofile
  --no-init-file Don't read the user R profile
  --restore Do restore previously saved objects at startup
  --vanilla Combine --no-save, --no-restore, --no-site-file
                        --no-init-file and --no-environ

'file' may contain spaces but not shell metacharacters
Expressions (one or more '-e <expr>') may be used

-------------------------------------------------------------------------------

for a workaround:

(1) install the latest rbatch version in OSGeo4W
(2) from http://download.osgeo.org/osgeo4w/x86_64/release/rbatch/ download
rbatch-149-4.tar.bz2
(3) unzip rbatch-149-4.tar.bz2 and copy rbatchfiles.bat from the
ini-subfolder into C:\OSGeo4W64\etc\ini\
(4) try to R/RScript in the OSGeo4W within/outside a GRASS session

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

for a workaround:

we're working to bring the R-winGRASS-bridge back to OSGeo4W

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

Hi Helmut,

I have found the folder with the 18 files, but not the first one. The etc folder is almost empty in my case (see picture below).

image.png

Am Sa., 12. Dez. 2020 um 13:48 Uhr schrieb Helmut Kudrnovsky <hellik@web.de>:

for a workaround:

we’re working to bring the R-winGRASS-bridge back to OSGeo4W


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


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

There is one more OSGeo folder on my Disc (I do not know why) which is similarly empty:

image.png

Am Sa., 12. Dez. 2020 um 14:35 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

Hi Helmut,

I have found the folder with the 18 files, but not the first one. The etc folder is almost empty in my case (see picture below).

image.png

Am Sa., 12. Dez. 2020 um 13:48 Uhr schrieb Helmut Kudrnovsky <hellik@web.de>:

for a workaround:

we’re working to bring the R-winGRASS-bridge back to OSGeo4W


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


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

Okay I have found it now, strangely just in my programme files folder:

image.png

Does it make sense to transfer this data into the OSGeo64W Folder?

Am Sa., 12. Dez. 2020 um 14:40 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

There is one more OSGeo folder on my Disc (I do not know why) which is similarly empty:

image.png

Am Sa., 12. Dez. 2020 um 14:35 Uhr schrieb Tom Hackbarth <txhackbarth@gmail.com>:

Hi Helmut,

I have found the folder with the 18 files, but not the first one. The etc folder is almost empty in my case (see picture below).

image.png

Am Sa., 12. Dez. 2020 um 13:48 Uhr schrieb Helmut Kudrnovsky <hellik@web.de>:

for a workaround:

we’re working to bring the R-winGRASS-bridge back to OSGeo4W


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html


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

[a hint to save message size:

- just open a windows command console,
- change to the relevant folder: e.g.

C:\Users\your user>cd C:\OSGeo4W64\etc\ini
C:\OSGeo4W64\etc\ini>

- do dir /b

C:\OSGeo4W64\etc\ini>dir /b
gdal.bat
libgeotiff.bat
libjpeg.bat
liblas.bat
msvcrt.bat
msys.bat
proj.bat
python-core.bat
qt4.bat
rbatchfiles.bat

- mark the console output with mouse
- copy the text into the mail]

ok, at your computer, there seems to be some incomplete OSGeo4W installation
leftovers here and there. not sure why.

it's recommended to install OSGeo4W 64 bit into C:\OSGeo4W64, not into
c:\Programme

Does it make sense to transfer this data into the OSGeo64W Folder?

as we don't know, how (in)complete the OSGeo4W installation(s) are, I
suggest to delete both of them and try to re-install a new attempt in
C:\OSGeo4W64.

then try my procedures mentioned before in previous mails.

the content of C:\OSGeo4W64\etc\ini should be something like:

gdal.bat
libgeotiff.bat
libjpeg.bat
liblas.bat
msvcrt.bat
msys.bat
proj.bat
python-core.bat
qt4.bat
rbatchfiles.bat <=

especially rbatchfiles.bat

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html