<div dir="ltr">Dear Helmut,<div><br></div><div>thanks for jumping in again!</div><div><br></div><div><b>- C:\>ECHO %PATH% gives similar results:</b><br></div><div>D:\Programme\apps\grass\grass78\lib;<span style="background-color:rgb(0,255,255)">D:\Programme\apps\grass\grass78\bin</span>;C:\Users\txhac\AppData\Roaming\GRASS7\addons\bin;D:\Programme\apps\Python37;<span style="background-color:rgb(255,229,153)">D:\Programme\apps\Python37\Scripts</span>;D:\Programme\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;D:\Programme\apps\Python37\lib\site-packages\pywin32_system32<br></div><div><br></div><div>It is weird though, as it references mostly data on the D:\ disc although I saved all the installation data on C:\OSGeo4W64 (e.g. <span style="background-color:rgb(0,255,255)">C:\OSGeo4W64\apps\grass\grass78\bin</span> exists on my C drive as well, also <span style="background-color:rgb(255,229,153)">C:\OSGeo4W64\apps\Python37\Scripts</span> exists here). Grass seems to be still connected to repositories from prior failed installations. </div><div><br></div><div>So this might already be the problem? Does it make sense to just delete all the GRASS files on D:\ ?</div><div><br></div><div><b>-R libraries:</b></div><div><br></div><div>I use R only in administrator mode. When I download the packages in administrator mode, and try to run library("MuMIn") right afterwards, nothing happens:</div><div><br></div><div><font color="#674ea7">> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))<br>Warnung: Paket ‘MuMIn’ wird gerade benutzt und deshab nicht installiert<br>Installiere Pakete nach ‘C:/Users/txhac/Documents/R/win-library/4.0’<br>(da ‘lib’ nicht spezifiziert)<br>--- Bitte einen CRAN Spiegel für diese Sitzung auswählen ---<br>versuche URL '<a href="https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/lme4_1.1-26.zip">https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/lme4_1.1-26.zip</a>'<br>Content type 'application/zip' length 5334929 bytes (5.1 MB)<br>downloaded 5.1 MB<br><br>versuche URL '<a href="https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/optparse_1.6.6.zip">https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/optparse_1.6.6.zip</a>'<br>Content type 'application/zip' length 73243 bytes (71 KB)<br>downloaded 71 KB<br><br>versuche URL '<a href="https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/rgrass7_0.2-5.zip">https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/rgrass7_0.2-5.zip</a>'<br>Content type 'application/zip' length 184226 bytes (179 KB)<br>downloaded 179 KB<br><br>Paket ‘lme4’ erfolgreich ausgepackt und MD5 Summen abgeglichen<br>Paket ‘optparse’ erfolgreich ausgepackt und MD5 Summen abgeglichen<br>Paket ‘rgrass7’ erfolgreich ausgepackt und MD5 Summen abgeglichen<br><br>Die heruntergeladenen Binärpakete sind in <br>        C:\Users\txhac\AppData\Local\Temp\RtmpKeTsOQ\downloaded_packages<br>> library("MuMIn")</font><br></div><div><font color="#674ea7">></font></div><div><br></div><div><b> - Running R in Grass Session</b></div><div><br></div><div>Running Rscript after running R within a GRASS session works fine (see below). Still, running library("MuMIn"), doesn't show any results. Strangely, I cannot run Rscript after running R within the Grass terminal, only the other way round. (when running Rscript after R, the following results show up:</div><div>>Rscript</div>Fehler: Objekt 'Rscript' nicht gefunden (meaning: Object 'Rscript' was not found))<div><br></div><div><font color="#674ea7">Starting GRASS GIS...<br>WARNUNG: Sperren gleichzeitiger Zugriffe auf ein Mapset ist unter Windows<br>         nicht möglich.<br>Cleaning up temporary files...<br><br>          __________  ___   __________    _______________<br>         / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/<br>        / / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \<br>       / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /<br>       \____/_/ |_/_/  |_/____/____/   \____/___//____/<br><br>Welcome to GRASS GIS 7.8.5<br>GRASS GIS homepage:                      <a href="https://grass.osgeo.org">https://grass.osgeo.org</a><br>This version running through:            Command Prompt (C:\Windows\system32\cmd.exe)<br>Help is available with the command:      g.manual -i<br>See the licence terms with:              g.version -c<br>See citation options with:               g.version -x<br>If required, restart the GUI with:       g.gui wxpython<br>When ready to quit enter:                exit<br><br>Launching <wxpython> GUI in the background, please wait...<br>Microsoft Windows [Version 10.0.18363.1316]<br>(c) 2019 Microsoft Corporation. Alle Rechte vorbehalten.<br><br>C:\><br>C:\>set PATH=%PATH%;C:\Program Files\R\R-4.0.3\bin<br><br>C:\>Rscript<br>Usage: /path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]<br><br>--options accepted are<br>  --help              Print usage and exit<br>  --version           Print version and exit<br>  --verbose           Print information on progress<br>  --default-packages=list<br>                      Where 'list' is a comma-separated set<br>                        of package names, or 'NULL'<br>or options to R, in addition to --no-echo --no-restore, such as<br>  --save              Do save workspace at the end of the session<br>  --no-environ        Don't read the site and user environment files<br>  --no-site-file      Don't read the site-wide Rprofile<br>  --no-init-file      Don't read the user R profile<br>  --restore           Do restore previously saved objects at startup<br>  --vanilla           Combine --no-save, --no-restore, --no-site-file<br>                        --no-init-file and --no-environ<br><br>'file' may contain spaces but not shell metacharacters<br>Expressions (one or more '-e <expr>') may be used *instead* of 'file'<br>See also  ?Rscript  from within R<br><br>C:\>R<br><br>R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"<br>Copyright (C) 2020 The R Foundation for Statistical Computing<br>Platform: x86_64-w64-mingw32/x64 (64-bit)<br><br>R ist freie Software und kommt OHNE JEGLICHE GARANTIE.<br>Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.<br>Tippen Sie 'license()' or 'licence()' f├╝r Details dazu.<br><br>R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.<br>Tippen Sie 'contributors()' f├╝r mehr Information und 'citation()',<br>um zu erfahren, wie R oder R packages in Publikationen zitiert werden k├Ânnen.<br><br>Tippen Sie 'demo()' f├╝r einige Demos, 'help()' f├╝r on-line Hilfe, oder<br>'help.start()' f├╝r eine HTML Browserschnittstelle zur Hilfe.<br>Tippen Sie 'q()', um R zu verlassen.<br><br>Beim Start - Warnmeldungen:<br>1: Setting LC_CTYPE=de_DE.cp1252 failed<br>2: Setting LC_COLLATE=de_DE.cp1252 failed<br>3: Setting LC_TIME=de_DE.cp1252 failed<br>4: Setting LC_MONETARY=de_DE.cp1252 failed<br>> library("MuMIn")<br></font></div><div><font color="#674ea7">>   </font><br></div><div>  <br></div><div>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. </div><div><br></div><div>Thanks in advance!<br><br></div><div>Best regards</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 9. Feb. 2021 um 21:33 Uhr schrieb Helmut Kudrnovsky <<a href="mailto:hellik@web.de">hellik@web.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>- set PATH=%PATH%;C:\Program Files\R\R-4.0.3\bin has been included<br>
<br>
start winGRASS and type into the console:<br>
<br>
C:\>ECHO %PATH%<br>
<br>
here in OSGeo4W-winGRASS, it's something like:<br>
<br>
C:\OSGEO4~1\apps\grass\grass78\lib;C:\OSGEO4~1\apps\grass\grass78\bin;C:\Users\hkmyr\AppData\Roaming\GRASS7\addons\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;{app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program<br>
Files\R\R-4.0.3\bin\x64;C:\OSGEO4~1\apps\Python37\lib\site-packages\pywin32_system32<br>
<br>
post your result here.<br>
<br>
<br>
>- R libraries have been installed, but when I type in library("MuMIn") in<br>
the terminal, nothing happens<br>
<br>
are you're sure you have installed the library systemwide via R in<br>
administrator mode?<br>
<br>
just open R (outside any GRASS session) and try to load the library.<br>
<br>
what is the result?<br>
<br>
here: <br>
<br>
> library("MuMIn")<br>
> <br>
<br>
library loaded<br>
<br>
then start R within a GRASS session in the console and load the library.<br>
<br>
here:<br>
<br>
Welcome to GRASS GIS 7.8.5<br>
GRASS GIS homepage:                      <a href="https://grass.osgeo.org" rel="noreferrer" target="_blank">https://grass.osgeo.org</a><br>
This version running through:            Command Prompt<br>
(C:\WINDOWS\system32\cmd.exe)<br>
Help is available with the command:      g.manual -i<br>
See the licence terms with:              g.version -c<br>
See citation options with:               g.version -x<br>
If required, restart the GUI with:       g.gui wxpython<br>
When ready to quit enter:                exit<br>
<br>
Launching <wxpython> GUI in the background, please wait...<br>
Microsoft Windows [Version 10.0.19042.746]<br>
(c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.<br>
<br>
C:\>R<br>
<br>
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"<br>
Copyright (C) 2020 The R Foundation for Statistical Computing<br>
Platform: x86_64-w64-mingw32/x64 (64-bit)<br>
<br>
R ist freie Software und kommt OHNE JEGLICHE GARANTIE.<br>
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.<br>
Tippen Sie 'license()' or 'licence()' f├╝r Details dazu.<br>
<br>
R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.<br>
Tippen Sie 'contributors()' f├╝r mehr Information und 'citation()',<br>
um zu erfahren, wie R oder R packages in Publikationen zitiert werden<br>
k├Ânnen.<br>
<br>
Tippen Sie 'demo()' f├╝r einige Demos, 'help()' f├╝r on-line Hilfe, oder<br>
'help.start()' f├╝r eine HTML Browserschnittstelle zur Hilfe.<br>
Tippen Sie 'q()', um R zu verlassen.<br>
<br>
Beim Start - Warnmeldungen:<br>
1: Setting LC_CTYPE=de_AT.cp1252 failed<br>
2: Setting LC_COLLATE=de_AT.cp1252 failed<br>
3: Setting LC_TIME=de_AT.cp1252 failed<br>
4: Setting LC_MONETARY=de_AT.cp1252 failed<br>
> library("MuMIn")<br>
<br>
library loaded here also<br>
<br>
>- when I run R or Rscript in the terminal the right response is shown, but<br>
only if I run them separately. >If i try to run Rscript after running R in<br>
the terminal, Rscript will not be found. Maybe this is the problem?<br>
<br>
tested here:<br>
<br>
Welcome to GRASS GIS 7.8.5<br>
GRASS GIS homepage:                      <a href="https://grass.osgeo.org" rel="noreferrer" target="_blank">https://grass.osgeo.org</a><br>
This version running through:            Command Prompt<br>
(C:\WINDOWS\system32\cmd.exe)<br>
Help is available with the command:      g.manual -i<br>
See the licence terms with:              g.version -c<br>
See citation options with:               g.version -x<br>
If required, restart the GUI with:       g.gui wxpython<br>
When ready to quit enter:                exit<br>
<br>
Launching <wxpython> GUI in the background, please wait...<br>
Microsoft Windows [Version 10.0.19042.746]<br>
(c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.<br>
<br>
C:\>R<br>
<br>
R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"<br>
Copyright (C) 2020 The R Foundation for Statistical Computing<br>
Platform: x86_64-w64-mingw32/x64 (64-bit)<br>
<br>
R ist freie Software und kommt OHNE JEGLICHE GARANTIE.<br>
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.<br>
Tippen Sie 'license()' or 'licence()' f├╝r Details dazu.<br>
<br>
R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.<br>
Tippen Sie 'contributors()' f├╝r mehr Information und 'citation()',<br>
um zu erfahren, wie R oder R packages in Publikationen zitiert werden<br>
k├Ânnen.<br>
<br>
Tippen Sie 'demo()' f├╝r einige Demos, 'help()' f├╝r on-line Hilfe, oder<br>
'help.start()' f├╝r eine HTML Browserschnittstelle zur Hilfe.<br>
Tippen Sie 'q()', um R zu verlassen.<br>
<br>
Beim Start - Warnmeldungen:<br>
1: Setting LC_CTYPE=de_AT.cp1252 failed<br>
2: Setting LC_COLLATE=de_AT.cp1252 failed<br>
3: Setting LC_TIME=de_AT.cp1252 failed<br>
4: Setting LC_MONETARY=de_AT.cp1252 failed<br>
> q()<br>
Workspace sichern? [y/n/c]: n<br>
<br>
C:\>RScript<br>
Usage: /path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]<br>
<br>
--options accepted are<br>
  --help              Print usage and exit<br>
  --version           Print version and exit<br>
  --verbose           Print information on progress<br>
  --default-packages=list<br>
                      Where 'list' is a comma-separated set<br>
                        of package names, or 'NULL'<br>
or options to R, in addition to --no-echo --no-restore, such as<br>
  --save              Do save workspace at the end of the session<br>
  --no-environ        Don't read the site and user environment files<br>
  --no-site-file      Don't read the site-wide Rprofile<br>
  --no-init-file      Don't read the user R profile<br>
  --restore           Do restore previously saved objects at startup<br>
  --vanilla           Combine --no-save, --no-restore, --no-site-file<br>
                        --no-init-file and --no-environ<br>
<br>
'file' may contain spaces but not shell metacharacters<br>
Expressions (one or more '-e <expr>') may be used *instead* of 'file'<br>
See also  ?Rscript  from within R<br>
<br>
within a GRASS session: RScript runs fine after a R session<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html</a><br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div>