[GRASS-user] r.futures.potential - unable to open select-cursor

Helmut Kudrnovsky hellik at web.de
Wed Feb 10 12:15:14 PST 2021


now testing here with the standalone winGRASS installer 7.8.5

C:\Users\myuser>echo %PATH%
C:\Program Files\GRASS GIS 7.8\lib;C:\Program Files\GRASS GIS
7.8\bin;C:\Users\myuser\AppData\Roaming\GRASS7\addons\bin;{app};C:\Program
Files\GRASS GIS 7.8\extrabin;C:\Program Files\GRASS GIS 7.8\bin;C:\Program
Files\GRASS GIS 7.8\Python37;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Program
Files\dotnet\;C:\WINDOWS\System32\OpenSSH\;C:\Users\myuser\AppData\Local\Microsoft\WindowsApps;C:\Users\myuser\.dotnet\tools;C:\Program
Files\R\R-4.0.3\bin\x64;C:\Program Files\GRASS GIS
7.8\Python37\lib\site-packages\pywin32_system32


C:\Users\myuser>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
> library("MuMIn")
>

now RScript:

C:\Users\myuser>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


to sum up, R/RScript and loading libraries are working here in winGRASS
standalone 7.8.5 and OSGeo4W winGRASS 7.8.5

important, in both cases it's installed in the standard standalone/OSGeo4W
installation paths.

>It is weird though, as it references mostly data on the D:\ disc although I
saved all the installation data >on

are you sure that you're starting the right winGRASS installation? maybe the
start menue entry points to the old installation and not to the new one?

open start menue, right click on the GRASS GIS menue entry => more
information, open the folder where the menue entry is stored and again right
click GRASS GIS for properties.

standalone points to:

"C:\Program Files\GRASS GIS 7.8\grass78.bat" --gui

OSGeo4W points to:

C:\OSGeo4W64\bin\grass78.bat --gui

>So this might already be the problem? Does it make sense to just delete all
the GRASS files on D:\ ?

a clean installation is needed in order to be able seeing which installation
is used.

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

that's not needed as it's already in %PATH%. in standalone as well in
OSGeo4W; see my ECHO %PATH% in OSGeo4W and standalone.


>> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
>Warnung: Paket ‘MuMIn’ wird gerade benutzt und deshab nicht installiert
>Installiere Pakete nach ‘C:/Users/txhac/Documents/R/win-library/4.0’
>(da ‘lib’ nicht spezifiziert)

that's definitely a R issue and not a winGRASS issue. this has to be solved.

>So neither in R nor in Grass anything happens trying to run
library("MuMIn").
>Any idea what the problem might be? I also uninstalled and reinstalled R
now and nothing has changed.

as MuMIn may be installed C:/Users/txhac/Documents/R/win-library/4.0 and you
try to install it also in the R systemwide installation path; maybe there is
some library mismatch.

libraries aren't deinstalled if you deinstall R.

thus, you have to check your R installation first and focus on a running R
with all needed libraries. then a clean standalone/OSGeo4W GRASS is the next
step.




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


More information about the grass-user mailing list